Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write a function to iterate through the GraphQL schema object #3

Closed
evanmcneely opened this issue May 15, 2022 · 0 comments · Fixed by #33
Closed

Write a function to iterate through the GraphQL schema object #3

evanmcneely opened this issue May 15, 2022 · 0 comments · Fixed by #33
Assignees

Comments

@evanmcneely
Copy link
Contributor

evanmcneely commented May 15, 2022

Iterate through the graphQL schema object to determine field weights for query cost calculation.

Input: graphQL schema object
Output: An object with properties as types and values as weights. These could be nested in some way...
example outpu:, schema has type user with feilds username and password

{
  name: {
    weight: 1,
    feilds: {
      username: 0,
      password: 0,
    }
  }
}
@evanmcneely evanmcneely changed the title Write a function to parse the GraphQL schema Write a function to iterate through the GraphQL schema object May 17, 2022
@shalarewicz shalarewicz mentioned this issue Jun 2, 2022
5 tasks
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 a pull request may close this issue.

2 participants