oslabs-beta / GraphQL-Gate

A GraphQL rate limiting library with query complexity analysisfor Node.js
http://graphqlgate.io
MIT License
57 stars 2 forks source link

Completed analysis of include and skip directives #106

Open evanmcneely opened 2 years ago

evanmcneely commented 2 years ago

Summary

  1. adds support for @skip and @include directives for more accurate cost analysis for queries using these directives
  2. adds tests for these directives on objects, interfaces/fragments

Type of Change

Issues

closes #95

Evidence

Screen Shot 2022-08-18 at 2 01 59 PM Screen Shot 2022-08-18 at 2 05 54 PM

evanmcneely commented 2 years ago

I ended up refactoring things a bit to check all directives in the array.

Screen Shot 2022-08-20 at 10 31 24 AM