Skip to content

Instantly share code, notes, and snippets.

@gufranmirza
Created August 11, 2019 17:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gufranmirza/da17bd3b3aa8f1b248c98c22b3852f83 to your computer and use it in GitHub Desktop.
Save gufranmirza/da17bd3b3aa8f1b248c98c22b3852f83 to your computer and use it in GitHub Desktop.
artistType := graphql.NewObject(graphql.ObjectConfig{
Name: "Artist",
Fields: graphql.Fields{
"id": &graphql.Field{
Type: graphql.String,
},
"name": &graphql.Field{
Type: graphql.String,
},
"type": &graphql.Field{
Type: graphql.String,
},
},
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment