Created
August 11, 2019 17:56
-
-
Save gufranmirza/c3bc513973a6b749038ad8464265e821 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
rootQuery := graphql.NewObject(graphql.ObjectConfig{ | |
Name: "Query", | |
Fields: graphql.Fields{ | |
"songs": &graphql.Field{ | |
Type: graphql.NewList(songType), | |
Resolve: func(params graphql.ResolveParams) (interface{}, error) { | |
return nil, nil | |
}, | |
}, | |
}, | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment