oslabs-beta / GraphQL-Gate

A GraphQL rate limiting library with query complexity analysisfor Node.js

Home Page:http://graphqlgate.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Extend the 'buildTypeWeights' function to account for LISTS, ENUMS, INTERFACES, UNIONS, INPUT TYPES in a schema object

evanmcneely opened this issue · comments

Once this issue gets picked up, our buildTypeWeightsFromSchemaObject should be creating the type weight object out of a schema with query and basic types AND PASSING THE TESTS. Extend this functionality to work for all additional GraphQL schema types, including lists, enums, interfaces, unions, and input types (is this just an object type). Figure out if there is anything else we need to account for.

  1. Add functionality to the algorithm to pass the tests.