2017-10-02 16:50:25 +11:00

26 lines
379 B
JavaScript

export default /* GraphQL */ `
type File {
id: String!
name: String!
type: String!
size: Int!
path: String!
}
input Upload {
name: String!
type: String!
size: Int!
path: String!
}
type Query {
uploads: [File]
}
type Mutation {
singleUpload (file: Upload!): File!
multipleUpload (files: [Upload!]!): [File!]!
}
`