Enable introspection

This commit is contained in:
Douglas Barone 2022-08-08 16:56:37 -04:00
parent ce2055fc8f
commit 3cf5f27cdb

View File

@ -8,6 +8,12 @@ import { resolvers } from './resolvers'
import { schemaDirectives } from './schemaDirectives'
const server = new ApolloServer({
introspection: process.env.INTROSPECTION || false,
playground: {
settings: {
'editor.theme': 'light'
}
},
cors:
process.env.NODE_ENV === 'production'
? {