Jayden Seric 4d258cf0d5 Removed encoding from the File type.
It was missleading, as the encoding was only for the upload stream, not the file contents when stored.
2018-09-18 22:08:10 +10:00

18 lines
275 B
JavaScript

export default /* GraphQL */ `
type File {
id: ID!
path: String!
filename: String!
mimetype: String!
}
type Query {
uploads: [File]
}
type Mutation {
singleUpload(file: Upload!): File!
multipleUpload(files: [Upload!]!): [File!]!
}
`