Skip to content

Commit

Permalink
enable introspection graphql
Browse files Browse the repository at this point in the history
  • Loading branch information
AdriDevelopsThings committed Aug 28, 2022
1 parent 9b63ae3 commit d99346a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/graphql/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export const apolloServer = new ApolloServer({
typeDefs: readFileSync(process.env.GRAPHQL_SCHEMA_PATH || 'schema.graphql', { encoding: 'utf-8' }),
resolvers: resolvers,
cache: 'bounded',
introspection: true,
formatError: (error) => {
return new Error(`Internal server error.`)
}
Expand Down

0 comments on commit d99346a

Please sign in to comment.