stacker.news/api/typeDefs/lnurl.js

31 lines
484 B
JavaScript
Raw Normal View History

2021-06-27 03:18:32 +00:00
import { gql } from 'apollo-server-micro'
export default gql`
extend type Query {
lnAuth(k1: String!): LnAuth!
2021-10-28 19:59:53 +00:00
lnWith(k1: String!): LnWith!
2021-06-27 03:18:32 +00:00
}
extend type Mutation {
createAuth: LnAuth!
2021-10-28 19:59:53 +00:00
createWith: LnWith!
2021-06-27 03:18:32 +00:00
}
type LnAuth {
id: ID!
createdAt: String!
k1: String!
pubkey: String
encodedUrl: String!
}
2021-10-28 19:59:53 +00:00
type LnWith {
id: ID!
createdAt: String!
k1: String!
user: User!
withdrawalId: Int
encodedUrl: String!
}
2021-06-27 03:18:32 +00:00
`