Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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,
- },
- },
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement