Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Demonstrator of graphql-query-complexity on apollo-server-express

License

Notifications You must be signed in to change notification settings

digicatapult/graphql-complexity-experiment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GraphQL Complexity Experiment

Deprecation Notice

This application was deprecated on March 14th 2024, there will be no further dependency or security updates.

This repo contains demonstration code for using the module graphql-query-complexity with Apollo Server in order to constrain the query complexity accepted by a GraphQL API to prevent DoS type attacks. This is heavily inspired by the example given in MichalLytek/type-graphql.

Running the example

The example can be run with:

npm start

and viewed at the graphql playground at http://localhost:3000/graphql

About

Demonstrator of graphql-query-complexity on apollo-server-express

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published