Created
August 11, 2019 17:52
-
-
Save gufranmirza/da17bd3b3aa8f1b248c98c22b3852f83 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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