Advertisement
Guest User

Untitled

a guest
May 3rd, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 0.58 KB | None | 0 0
  1. type Query {
  2.   feed(filter: String, skip: Int, first: Int, orderBy: LinkOrderByInput): Feed!
  3. }
  4.  
  5. type Feed {
  6.   links: [Link!]!
  7.   count: Int!
  8. }
  9.  
  10. type Mutation {
  11.   post(url: String!, description: String!): Link!
  12.   signup(email: String!, password: String!, name: String!): AuthPayload
  13.   login(email: String!, password: String!): AuthPayload
  14.   vote(linkId: ID!): Vote
  15. }
  16.  
  17. type AuthPayload {
  18.   token: String
  19.   user: User
  20. }
  21.  
  22. type User {
  23.   id: ID!
  24.   name: String!
  25.   email: String!
  26. }
  27.  
  28. type Subscription {
  29.   newLink: LinkSubscriptionPayload
  30.   newVote: VoteSubscriptionPayload
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement