Skip to content

Conversation

@evanmcneely
Copy link
Contributor

@evanmcneely evanmcneely commented May 20, 2022

Summary

  • created the function signature for the buildTypeWeightsFromSchemaObject function. This function will iterate through the schema object and create a "type weights" object for use in the complexity algorithm.
  • wrote a test suite to check functionality of the above function.

Type of Change

  • New feature (non-breaking change which adds functionality)

Issues

closes #7

Evidence

'query parameter' is skipped because we opted not to implement that as a default configuration but could at a later date.

Screen Shot 2022-05-19 at 10 16 30 PM

Copy link
Collaborator

@shalarewicz shalarewicz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added some minor comments. Is there any additional testing that can be done with nesting? Not sure if there is but wanted to bring it up.

@evanmcneely evanmcneely requested a review from shalarewicz May 21, 2022 17:01
Copy link

@milos381 milos381 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job! Well written. Completely understandable and readable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Write test for graphql schema object parser function

4 participants