Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit caf9f23

Browse files
andrehsuacao
authored andcommitted
Update README.md
Remove `specifiedRules` since in the source code at `express-graphql/src/index.ts: 303`, `specifiedRules` is already imported and used
1 parent 770bf30 commit caf9f23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,14 +373,14 @@ application any more secure. Nevertheless, disabling introspection is possible b
373373
package.
374374

375375
```js
376-
import { specifiedRules, NoSchemaIntrospectionCustomRule } from 'graphql';
376+
import { NoSchemaIntrospectionCustomRule } from 'graphql';
377377

378378
app.use(
379379
'/graphql',
380380
graphqlHTTP((request) => {
381381
return {
382382
schema: MyGraphQLSchema,
383-
validationRules: [...specifiedRules, NoSchemaIntrospectionCustomRule],
383+
validationRules: [NoSchemaIntrospectionCustomRule],
384384
};
385385
}),
386386
);

0 commit comments

Comments
 (0)