stacker.news/api/typeDefs/invite.js

25 lines
422 B
JavaScript

import { gql } from 'apollo-server-micro'
export default gql`
extend type Query {
invites: [Invite!]!
invite(id: ID!): Invite
}
extend type Mutation {
createInvite(gift: Int!, limit: Int): Invite
revokeInvite(id: ID!): Invite
}
type Invite {
id: ID!
createdAt: String!
invitees: [User!]!
gift: Int!
limit: Int
user: User!
revoked: Boolean!
poor: Boolean!
}
`