2021-05-13 20:18:46 +10:00

30 lines
644 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.

import {
GraphQLID,
GraphQLNonNull,
GraphQLObjectType,
GraphQLString,
} from 'graphql';
export default 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),
},
}),
});