Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. schema {
  2. query: Query
  3. }
  4.  
  5. type Query {
  6. songs: [Song]
  7. albuns: [Album]
  8. artists: [Artist]
  9. artist(id: Int!): Movie
  10. album(id: Int!): Actor
  11. artist(id: Int!): Artist
  12. searchSongs(term: String): [Song]
  13. searchAlbuns(term: String): [Album]
  14. searchArtists(term: String): [Artist]
  15. }
  16.  
  17. type Song {
  18. id: Int
  19. number: int
  20. title: String
  21. duration: Int
  22. album: Album
  23. }
  24.  
  25. type Album {
  26. id: Int
  27. title: String
  28. cover_image: String
  29. release_year: Int
  30. genre: String
  31. songs: [Song]
  32. }
  33.  
  34. type Artist {
  35. id: Int
  36. name: String
  37. formation_year: String
  38. genre: String
  39. songs: [Song]
  40. albuns: [Album]
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement