23 lines
297 B
GraphQL
23 lines
297 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!
|
|
}
|