Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. songType := graphql.NewObject(graphql.ObjectConfig{
  2. Name: "Song",
  3. Fields: graphql.Fields{
  4. "id": &graphql.Field{
  5. Type: graphql.String,
  6. },
  7. "album": &graphql.Field{
  8. Type: graphql.String,
  9. },
  10. "title": &graphql.Field{
  11. Type: graphql.String,
  12. },
  13. "duration": &graphql.Field{
  14. Type: graphql.String,
  15. },
  16. },
  17. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement