stacker.news/api/typeDefs/rewards.js

17 lines
270 B
JavaScript
Raw Normal View History

2022-12-08 00:04:02 +00:00
import { gql } from 'apollo-server-micro'
export default gql`
extend type Query {
expectedRewards: ExpectedRewards!
}
extend type Mutation {
donateToRewards(sats: Int!): Int!
}
type ExpectedRewards {
total: Int!
sources: [NameValue!]!
}
`