graphene/docs/playground/schema.js

16 lines
253 B
JavaScript
Raw Normal View History

2015-11-27 10:50:37 +03:00
import {
GraphQLObjectType,
GraphQLString,
GraphQLSchema,
2015-11-27 10:50:37 +03:00
} from 'graphql';
export default new GraphQLSchema({
query: new GraphQLObjectType({
name: 'Query',
fields: () => ({
__emptyField: {type: GraphQLString},
2015-11-27 10:50:37 +03:00
}),
}),
});