stacker.news/api/typeDefs/user.js

19 lines
270 B
JavaScript
Raw Normal View History

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-03-25 19:29:24 +00:00
}
`