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

Create different structs different types of queries. #3

Open
ikaneshiro opened this issue Feb 5, 2020 · 0 comments
Open

Create different structs different types of queries. #3

ikaneshiro opened this issue Feb 5, 2020 · 0 comments

Comments

@ikaneshiro
Copy link
Contributor

Currently the compute client package uses structs that mimic the types of the GraphQL API, this results in issues when trying to form a query with stucts of the form:

type Job struct {
    Requires []Job
}

Due to some infinite recursion.

A better approach involves using structs that are query specific in order reflect the interesting data the query and properly declare the depth of search.

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

No branches or pull requests

1 participant