File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 2626Install the package
2727
2828```
29- npm i graphqlgate
29+ npm i graphql-limiter
3030```
3131
3232Import the package and add the rate-limiting middlleware to the Express middleware chain before the GraphQL server.
@@ -35,7 +35,7 @@ NOTE: a Redis server instance will need to be started in order for the limiter t
3535
3636``` javascript
3737// import package
38- import expressGraphQLRateLimiter from ' graphqlgate ' ;
38+ import expressGraphQLRateLimiter from ' graphql-limiter ' ;
3939
4040/**
4141 * Import other dependencies
Original file line number Diff line number Diff line change 11{
2- "name" : " graphqlgate " ,
2+ "name" : " graphql-limiter " ,
33 "version" : " 1.0.0" ,
44 "description" : " A GraphQL rate limiting library using query complexity analysis." ,
5- "main" : " index.js " ,
5+ "main" : " src/middleware/ index.ts " ,
66 "type" : " module" ,
77 "files" : [" src" ],
88 "scripts" : {
You can’t perform that action at this time.
0 commit comments