How to use the apollo-server-core.defaultPlaygroundOptions function in apollo-server-core

To help you get started, we’ve selected a few apollo-server-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github moleculerjs / moleculer-apollo-server / index.js View on Github external
const ApolloService = require("./src/service");
const gql = require("./src/gql");

module.exports = {
	// Core
	GraphQLUpload: core.GraphQLUpload,
	GraphQLExtension: core.GraphQLExtension,
	gql: core.gql,
	ApolloError: core.ApolloError,
	toApolloError: core.toApolloError,
	SyntaxError: core.SyntaxError,
	ValidationError: core.ValidationError,
	AuthenticationError: core.AuthenticationError,
	ForbiddenError: core.ForbiddenError,
	UserInputError: core.UserInputError,
	defaultPlaygroundOptions: core.defaultPlaygroundOptions,

	// GraphQL tools
	...require("graphql-tools"),

	// Apollo Server
	ApolloServer,

	// Apollo Moleculer Service
	ApolloService,

	// Moleculer gql formatter
	moleculerGql: gql,
};