stacker.news/api/typeDefs/upload.js

13 lines
254 B
JavaScript

import { gql } from 'graphql-tag'
export default gql`
extend type Mutation {
getSignedPOST(type: String!, size: Int!, width: Int!, height: Int!, avatar: Boolean): SignedPost!
}
type SignedPost {
url: String!
fields: JSONObject!
}
`