upload-apollo-client/api/schema.graphql
2017-04-03 12:39:30 -06:00

24 lines
339 B
GraphQL

type File {
name: String!
type: String!
size: Int!
path: String!
}
input Upload {
name: String!
type: String!
size: Int!
path: String!
}
type Query {
# GraphQL will not work without defining a query.
ignore: Boolean
}
type Mutation {
singleUpload (file: Upload!): File!
multiUpload (files: [Upload!]): [File!]
}