Skip to content

Commit

Permalink
Hide introspection of graphQL in production and updated all packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
ParsaHejabi committed Oct 6, 2021
1 parent 59c9be6 commit c9c3c8b
Show file tree
Hide file tree
Showing 2 changed files with 1,204 additions and 1,126 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const pubsub = new PubSub()
const server = new ApolloServer({
typeDefs,
resolvers,
introspection: process.env.NODE_ENV !== 'production',
context: ({ req }) => ({ req, pubsub }),
})

Expand Down
Loading

0 comments on commit c9c3c8b

Please sign in to comment.