disable introspection when GRAPHIQL is disabled

This commit is contained in:
Ulf Gebhardt 2022-01-16 11:05:40 +01:00
parent 8a2d64e609
commit 8b3f6ea339
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -74,6 +74,7 @@ const createServer = async (context: any = serverContext): Promise<any> => {
const apollo = new ApolloServer({
schema: await schema(),
playground: CONFIG.GRAPHIQL,
introspection: CONFIG.GRAPHIQL,
context,
plugins,
})