We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ca3a3f commit 2c142bdCopy full SHA for 2c142bd
examples/server/main.go
@@ -79,19 +79,16 @@ func main() {
79
},
80
81
Resolve: func(p graphql.ResolveParams) (interface{}, error) {
82
-
83
id := p.Args["id"].(int)
84
documents[id].Title = p.Args["title"].(string)
85
documents[id].Content = p.Args["content"].(string)
86
87
for _, subscriptions := range subscriptionManager.Subscriptions() {
88
for _, subscription := range subscriptions {
89
90
// JSON interface is float64
91
var subID int = int(subscription.Variables["id"].(float64))
92
93
if id == subID {
94
95
params := graphql.Params{
96
Schema: schema,
97
RequestString: subscription.Query,
0 commit comments