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,
|
2023-07-21 17:49:19 -06:00
|
|
|
Args: graphql.FieldConfigArgument{
|
|
|
|
"id": &graphql.ArgumentConfig{
|
|
|
|
Type: graphql.String,
|
2023-07-21 15:16:35 -06:00
|
|
|
},
|
2023-07-21 17:49:19 -06:00
|
|
|
},
|
|
|
|
Resolve: func(p graphql.ResolveParams) (interface{}, error) {
|
2023-07-27 15:27:14 -06:00
|
|
|
return StopSignal, nil
|
2023-07-21 17:49:19 -06:00
|
|
|
},
|
2023-07-21 15:16:35 -06:00
|
|
|
}
|
|
|
|
|
2023-07-29 11:03:41 -06:00
|
|
|
return mutation_stop
|
2023-07-21 17:49:19 -06:00
|
|
|
})
|
|
|
|
|