Navigation Menu

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/f2a69e03ea311911d2128b5377ff3ee4 to your computer and use it in GitHub Desktop.
Save gufranmirza/f2a69e03ea311911d2128b5377ff3ee4 to your computer and use it in GitHub Desktop.
songType := graphql.NewObject(graphql.ObjectConfig{
Name: "Song",
Fields: graphql.Fields{
"id": &graphql.Field{
Type: graphql.String,
},
"album": &graphql.Field{
Type: graphql.String,
},
"title": &graphql.Field{
Type: graphql.String,
},
"duration": &graphql.Field{
Type: graphql.String,
},
},
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment