stacker.news/api/typeDefs/lnurl.js

32 lines
501 B
JavaScript
Raw Normal View History

import { gql } from 'graphql-tag'
2021-06-27 03:18:32 +00:00
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!
2023-01-18 18:49:20 +00:00
slashtagUrl: String!
2021-06-27 03:18:32 +00:00
}
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
`