Jayden Seric 919c1d7a50 Update dependencies.
Includes prettier v2 lint fixes.
2020-03-30 13:00:27 +11:00

32 lines
665 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

'use strict'
const {
GraphQLNonNull,
GraphQLObjectType,
GraphQLString,
GraphQLID,
} = require('graphql')
exports.FileType = new GraphQLObjectType({
name: 'File',
description: 'A stored file.',
fields: () => ({
id: {
description: 'Unique ID.',
type: GraphQLNonNull(GraphQLID),
},
path: {
description: 'Where its stored in the filesystem.',
type: GraphQLNonNull(GraphQLString),
},
filename: {
description: 'Filename, including extension.',
type: GraphQLNonNull(GraphQLString),
},
mimetype: {
description: 'MIME type.',
type: GraphQLNonNull(GraphQLString),
},
}),
})