stacker.news/api/typeDefs/upload.js

27 lines
501 B
JavaScript
Raw Normal View History

import { gql } from 'graphql-tag'
2022-05-12 18:44:21 +00:00
export default gql`
type UploadFees {
totalFees: Int!
totalFeesMsats: Int!
uploadFees: Int!
uploadFeesMsats: Int!
nUnpaid: Int!
bytesUnpaid: Int!
bytes24h: Int!
2022-05-12 18:44:21 +00:00
}
type SignedPost {
url: String!
fields: JSONObject!
}
extend type Query {
uploadFees(s3Keys: [Int]!): UploadFees!
}
extend type Mutation {
getSignedPOST(type: String!, size: Int!, width: Int!, height: Int!, avatar: Boolean): SignedPost!
}
2022-05-12 18:44:21 +00:00
`