- Using a new component for sections. - Renamed “multi” to “multiple” in the uploader name, to match the input attribute “multiple”.
23 lines
295 B
GraphQL
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!]!
|
|
}
|