File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -69,20 +69,20 @@ func main() {
69
69
Type : documentType ,
70
70
Args : graphql.FieldConfigArgument {
71
71
"id" : & graphql.ArgumentConfig {
72
- Type : graphql .Int ,
72
+ Type : graphql .NewNonNull ( graphql . Int ) ,
73
73
},
74
74
"title" : & graphql.ArgumentConfig {
75
- Type : graphql .String ,
75
+ Type : graphql .NewNonNull ( graphql . String ) ,
76
76
},
77
77
"content" : & graphql.ArgumentConfig {
78
- Type : graphql .String ,
78
+ Type : graphql .NewNonNull ( graphql . String ) ,
79
79
},
80
80
},
81
81
Resolve : func (p graphql.ResolveParams ) (interface {}, error ) {
82
82
83
83
id := p .Args ["id" ].(int )
84
84
documents [id ].Title = p .Args ["title" ].(string )
85
- documents [id ].Title = p .Args ["title " ].(string )
85
+ documents [id ].Content = p .Args ["content " ].(string )
86
86
87
87
for _ , subscriptions := range subscriptionManager .Subscriptions () {
88
88
for _ , subscription := range subscriptions {
You can’t perform that action at this time.
0 commit comments