Created
August 11, 2019 17:52
-
-
Save gufranmirza/f2a69e03ea311911d2128b5377ff3ee4 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
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