@graphql-debugger/apollo-server
GraphQL Debugger Plugin for Apollo Server.
Installation
npm install @graphql-debugger/apollo-server
Usage
Apply the plugin to your Apollo Server.
import { makeExecutableSchema } from "@graphql-tools/schema";
import { ApolloServer } from "@apollo/server";
+ import { graphqlDebuggerPlugin } from "@graphql-debugger/apollo-server";
const apolloServer = new ApolloServer({
schema,
+ plugins: [graphqlDebuggerPlugin()],
});
Options
Configure the Debugger Plugin with the options in the plugin function:
import { graphqlDebuggerPlugin } from "@graphql-debugger/apollo-server";
import { ApolloServer } from "@apollo/server";
const apolloServer = new ApolloServer({
schema,
plugins: [
graphqlDebuggerPlugin({
adapter?: Adapter,
exporterConfig: {...} // your options for exporter
instrumentations: {...} // your options for instrumentations
}),
],
});
⚠️
If you do not pass thru an adapter, the default Proxy Adapter will be used, see the Adapters Section for more information.