|
|
@ -1167,12 +1167,20 @@ func NewGQLExtContext() *GQLExtContext {
|
|
|
|
panic(err)
|
|
|
|
panic(err)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
context.Mutation.AddFieldConfig("stop", &graphql.Field{
|
|
|
|
err = context.AddSignalMutation("stop", "node_id", reflect.TypeOf(StopSignal{}))
|
|
|
|
Type: graphql.String,
|
|
|
|
if err != nil {
|
|
|
|
Resolve: func(p graphql.ResolveParams) (interface{}, error) {
|
|
|
|
panic(err)
|
|
|
|
return nil, fmt.Errorf("NOT_IMPLEMENTED")
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
})
|
|
|
|
err = context.AddSignalMutation("addMember", "group_id", reflect.TypeOf(AddMemberSignal{}))
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
|
|
|
|
panic(err)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
err = context.AddSignalMutation("removeMember", "group_id", reflect.TypeOf(RemoveMemberSignal{}))
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
|
|
|
|
panic(err)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
context.Subscription.AddFieldConfig("Self", &graphql.Field{
|
|
|
|
context.Subscription.AddFieldConfig("Self", &graphql.Field{
|
|
|
|
Type: context.Interfaces["Node"].Interface,
|
|
|
|
Type: context.Interfaces["Node"].Interface,
|
|
|
|