2023-07-23 15:08:43 +00:00
|
|
|
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!
|
2023-07-27 00:18:42 +00:00
|
|
|
createdAt: Date!
|
2021-10-12 23:49:04 +00:00
|
|
|
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
|
|
|
}
|
|
|
|
`
|