graphvent/gql_mutation.go

22 lines
433 B
Go

2023-07-21 15:16:35 -06:00
package graphvent
import (
"github.com/graphql-go/graphql"
)
2023-07-29 11:03:41 -06:00
var MutationStop = NewField(func()*graphql.Field {
mutation_stop := &graphql.Field{
Type: TypeSignal.Type,
Args: graphql.FieldConfigArgument{
"id": &graphql.ArgumentConfig{
Type: graphql.String,
2023-07-21 15:16:35 -06:00
},
},
Resolve: func(p graphql.ResolveParams) (interface{}, error) {
return StopSignal, nil
},
2023-07-21 15:16:35 -06:00
}
2023-07-29 11:03:41 -06:00
return mutation_stop
})