Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type Query {
- feed(filter: String, skip: Int, first: Int, orderBy: LinkOrderByInput): Feed!
- }
- type Feed {
- links: [Link!]!
- count: Int!
- }
- type Mutation {
- post(url: String!, description: String!): Link!
- signup(email: String!, password: String!, name: String!): AuthPayload
- login(email: String!, password: String!): AuthPayload
- vote(linkId: ID!): Vote
- }
- type AuthPayload {
- token: String
- user: User
- }
- type User {
- id: ID!
- name: String!
- email: String!
- }
- type Subscription {
- newLink: LinkSubscriptionPayload
- newVote: VoteSubscriptionPayload
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement