It was missleading, as the encoding was only for the upload stream, not the file contents when stored.
18 lines
275 B
JavaScript
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!]!
|
|
}
|
|
`
|