stacker.news/api/typeDefs/user.js

20 lines
286 B
JavaScript

import { gql } from 'apollo-server-micro'
export default gql`
extend type Query {
me: User
user(name: String): User
users: [User!]
}
type User {
id: ID!
name: String
nitems: Int!
ncomments: Int!
stacked: Int!
sats: Int!
msats: Int!
}
`