24 lines
306 B
GraphQL
24 lines
306 B
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 {
|
|
allUploads: [File]
|
|
}
|
|
|
|
type Mutation {
|
|
singleUpload (file: Upload!): File!
|
|
multiUpload (files: [Upload!]!): [File!]!
|
|
}
|