Also: - Update deps. - Lock `apollo-cache-inmemory` to v1.0.0 since newer versions are buggy. - New file naming approach for stored uploads. - More intuitive mixed ESM/CJS module imports in the API.
21 lines
316 B
JavaScript
21 lines
316 B
JavaScript
export default /* GraphQL */ `
|
|
scalar Upload
|
|
|
|
type File {
|
|
id: ID!
|
|
path: String!
|
|
filename: String!
|
|
mimetype: String!
|
|
encoding: String!
|
|
}
|
|
|
|
type Query {
|
|
uploads: [File]
|
|
}
|
|
|
|
type Mutation {
|
|
singleUpload (file: Upload!): File!
|
|
multipleUpload (files: [Upload!]!): [File!]!
|
|
}
|
|
`
|