upload-apollo-client/api/schema.graphql
Jayden Seric 6492ba8fef Componentization improvements.
- Using a new component for sections.
- Renamed “multi” to “multiple” in the uploader name, to match the input attribute “multiple”.
2017-04-09 13:13:39 +10:00

23 lines
295 B
GraphQL

type File {
name: String!
type: String!
size: Int!
path: String!
}
input Upload {
name: String!
type: String!
size: Int!
path: String!
}
type Query {
allUploads: [File]
}
type Mutation {
singleUpload (file: Upload!): File!
multipleUpload (files: [Upload!]!): [File!]!
}