stacker.news/api/typeDefs/invite.js

25 lines
414 B
JavaScript
Raw Normal View History

import { gql } from 'graphql-tag'
2021-10-12 23:49:04 +00:00
export default gql`
extend type Query {
invites: [Invite!]!
2021-10-15 23:07:51 +00:00
invite(id: ID!): Invite
2021-10-12 23:49:04 +00:00
}
extend type Mutation {
createInvite(gift: Int!, limit: Int): Invite
2021-10-14 21:05:37 +00:00
revokeInvite(id: ID!): Invite
2021-10-12 23:49:04 +00:00
}
type Invite {
id: ID!
createdAt: String!
invitees: [User!]!
gift: Int!
limit: Int
2021-10-15 23:07:51 +00:00
user: User!
2021-10-12 23:49:04 +00:00
revoked: Boolean!
2021-10-15 23:07:51 +00:00
poor: Boolean!
2021-10-12 23:49:04 +00:00
}
`