Advertisement
Guest User

Untitled

a guest
May 24th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. # will be ignored by the allow-list
  2. type Starship {
  3. id: ID!
  4. name: String!
  5. length(unit: LengthUnit = METER): Float
  6. }
  7.  
  8. # will be ignored by the allow-list
  9. scalar parsec
  10.  
  11. # will be ignored by the allow-list
  12. enum Episode {
  13. NEWHOPE
  14. EMPIRE
  15. JEDI
  16. }
  17.  
  18. # will be stored in the allow-list
  19. query getAuthors {
  20. author {
  21. id
  22. name
  23. }
  24. }
  25.  
  26. fragment frag on Starship {
  27. name
  28. }
  29.  
  30. # will be stored in the allow-list
  31. query getArticles {
  32. article {
  33. id
  34. title
  35. }
  36. }
  37.  
  38. # will be stored in the allow-list after patching in the fragment
  39. query getArticle {
  40. article {
  41. id
  42. title
  43. ...frag
  44. }
  45. }
  46.  
  47. # will be stored in the allow-list
  48. mutation addArticles {
  49. insert_articles {
  50. id
  51. title
  52. }
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement