Skip to content

Instantly share code, notes, and snippets.

@percybolmer
Created September 12, 2021 06:51
Show Gist options
  • Save percybolmer/1789ed3feacc60601a046cc8f13c2907 to your computer and use it in GitHub Desktop.
Save percybolmer/1789ed3feacc60601a046cc8f13c2907 to your computer and use it in GitHub Desktop.
graphql
package schemas
import (
"github.com/graphql-go/graphql"
"github.com/programmingpercy/gopheragency/gopher"
)
// modifyJobArgs are arguments available for the modifyJob Mutation request
var modifyJobArgs = graphql.FieldConfigArgument{
"employeeid": &graphql.ArgumentConfig{
// Create a string argument that cannot be empty
Type: graphql.NewNonNull(graphql.String),
},
"jobid": &graphql.ArgumentConfig{
Type: graphql.NewNonNull(graphql.String),
},
// The new start date to apply if set
"start": &graphql.ArgumentConfig{
Type: graphql.String,
},
// The new end date to apply if set
"end": &graphql.ArgumentConfig{
Type: graphql.String,
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment