Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. albumType := graphql.NewObject(graphql.ObjectConfig{
  2. Name: "Album",
  3. Fields: graphql.Fields{
  4. "id": &graphql.Field{
  5. Type: graphql.String,
  6. },
  7. "artist": &graphql.Field{
  8. Type: graphql.String,
  9. },
  10. "title": &graphql.Field{
  11. Type: graphql.String,
  12. },
  13. "year": &graphql.Field{
  14. Type: graphql.String,
  15. },
  16. "genre": &graphql.Field{
  17. Type: graphql.String,
  18. },
  19. "type": &graphql.Field{
  20. Type: graphql.String,
  21. },
  22. },
  23. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement