Advertisement
Guest User

Untitled

a guest
Sep 18th, 2019
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. const typeDefs = gql`
  2. type User {
  3. fname: String
  4. age: Int
  5. likes: Int
  6. }
  7.  
  8. type Query {
  9. users: [User!]
  10. }
  11.  
  12. type Mutation {
  13. incrementLike(fname: String!) : [User!]
  14. }
  15.  
  16. type Subscription {
  17. listenLikes : [User]
  18. }
  19. `;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement