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

Update buildTypeWeights to handle lists that resolve to scalars or enums

shalarewicz opened this issue · comments

Currently thebuildTypeWeights tests for queries that resolve to lists of scalars or enums fail. The type weight for these lists should be set to the configured or default type weight for enums or scalars.

  • TODO Enable tests under `fields returning lists of objects of determinate size and...the list resolves to an enum or scalar
  • TODO Enable tests under `fields returning lists of objects of determinate size and...the list resolves to an enum or scalar and a custom scalar weight was configured

Related to #61