Guest User

Untitled

a guest
Mar 24th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. type Zoo {
  2. ...
  3. customAnimalsNames: [String]
  4. animals: [Animal]
  5. city: String!
  6. }
  7.  
  8. type List {
  9. ...
  10. zoo: [Zoo]
  11. ...
  12. }
  13.  
  14. type Animal {
  15. ...
  16. name: String!
  17. }
  18.  
  19. import Animals from './collection';
  20.  
  21. export default (root, context, {userId}) => {
  22. ...
  23. return Animals.find({}).fetch();
  24. }
  25.  
  26. list(_id: String){
  27. zoo: {
  28. animals
  29. }
  30.  
  31. }
Add Comment
Please, Sign In to add comment