2021-03-25 19:29:24 +00:00
|
|
|
import { gql } from 'apollo-server-micro'
|
|
|
|
|
|
|
|
export default gql`
|
|
|
|
extend type Query {
|
|
|
|
me: User
|
2021-04-22 22:14:32 +00:00
|
|
|
user(name: String): User
|
2021-03-25 19:29:24 +00:00
|
|
|
users: [User!]
|
|
|
|
}
|
|
|
|
|
|
|
|
type User {
|
|
|
|
id: ID!
|
|
|
|
name: String
|
2021-04-22 22:14:32 +00:00
|
|
|
nitems: Int!
|
|
|
|
ncomments: Int!
|
|
|
|
stacked: Int!
|
|
|
|
sats: Int!
|
2021-05-12 23:04:19 +00:00
|
|
|
msats: Int!
|
2021-03-25 19:29:24 +00:00
|
|
|
}
|
|
|
|
`
|