stacker.news/api/typeDefs/lnurl.js

32 lines
497 B
JavaScript

import { gql } from 'graphql-tag'
export default gql`
extend type Query {
lnAuth(k1: String!): LnAuth!
lnWith(k1: String!): LnWith!
}
extend type Mutation {
createAuth: LnAuth!
createWith: LnWith!
}
type LnAuth {
id: ID!
createdAt: Date!
k1: String!
pubkey: String
encodedUrl: String!
slashtagUrl: String!
}
type LnWith {
id: ID!
createdAt: Date!
k1: String!
user: User!
withdrawalId: Int
encodedUrl: String!
}
`