18 lines
522 B
JavaScript
18 lines
522 B
JavaScript
|
|
import { GraphQLNonNull, GraphQLBoolean } from 'graphql';
|
||
|
|
import * as objectsQueries from './objectsQueries';
|
||
|
|
import * as usersQueries from './usersQueries';
|
||
|
|
|
||
|
|
const load = parseGraphQLSchema => {
|
||
|
|
parseGraphQLSchema.graphQLQueries.health = {
|
||
|
|
description:
|
||
|
|
'The health query can be used to check if the server is up and running.',
|
||
|
|
type: new GraphQLNonNull(GraphQLBoolean),
|
||
|
|
resolve: () => true,
|
||
|
|
};
|
||
|
|
|
||
|
|
objectsQueries.load(parseGraphQLSchema);
|
||
|
|
usersQueries.load(parseGraphQLSchema);
|
||
|
|
};
|
||
|
|
|
||
|
|
export { load };
|