2021-03-25 14:29:24 -05:00
|
|
|
import { gql } from 'apollo-server-micro'
|
|
|
|
|
|
|
|
export default gql`
|
|
|
|
extend type Query {
|
|
|
|
me: User
|
2021-05-21 17:32:21 -05:00
|
|
|
user(name: String!): User
|
2021-03-25 14:29:24 -05:00
|
|
|
users: [User!]
|
2021-05-21 17:32:21 -05:00
|
|
|
nameAvailable(name: String!): Boolean!
|
2021-06-24 18:56:01 -05:00
|
|
|
recentlyStacked: Int!
|
2021-03-25 14:29:24 -05:00
|
|
|
}
|
|
|
|
|
2021-05-21 19:09:11 -05:00
|
|
|
extend type Mutation {
|
|
|
|
setName(name: String!): Boolean
|
|
|
|
}
|
|
|
|
|
2021-03-25 14:29:24 -05:00
|
|
|
type User {
|
|
|
|
id: ID!
|
|
|
|
name: String
|
2021-04-22 17:14:32 -05:00
|
|
|
nitems: Int!
|
|
|
|
ncomments: Int!
|
|
|
|
stacked: Int!
|
2021-05-24 19:08:56 -05:00
|
|
|
freePosts: Int!
|
|
|
|
freeComments: Int!
|
2021-06-24 18:56:01 -05:00
|
|
|
hasNewNotes: Boolean!
|
2021-04-22 17:14:32 -05:00
|
|
|
sats: Int!
|
2021-05-12 18:04:19 -05:00
|
|
|
msats: Int!
|
2021-03-25 14:29:24 -05:00
|
|
|
}
|
|
|
|
`
|