File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ export class GraphqlConfigService implements GqlOptionsFactory<ApolloDriverConfi
3939 context : ( { req } ) => ( { req } ) ,
4040 cache : 'bounded' ,
4141 csrfPrevention : this . configService . get ( 'NODE_ENV' ) !== 'development' ,
42+ introspection : this . configService . get ( 'NODE_ENV' ) === 'development' ,
4243 } ;
4344 }
4445}
Original file line number Diff line number Diff line change @@ -41,11 +41,7 @@ async function bootstrap() {
4141 graphqlUploadExpress ( { maxFileSize : 1000 * 1000 * 10 , maxFiles : 10 } ) ,
4242 ( req : Request , res : Response , next : NextFunction ) => {
4343 const accept = req . headers . accept || '' ;
44- if (
45- accept . includes ( GRAPHQL_HEADER_KEY ) ||
46- req . method !== 'POST' ||
47- req . body ?. operationName === 'IntrospectionQuery'
48- ) {
44+ if ( accept . includes ( GRAPHQL_HEADER_KEY ) || req . method !== 'POST' ) {
4945 return next ( ) ;
5046 }
5147
You can’t perform that action at this time.
0 commit comments