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

Add query methods #4

Open
alastair opened this issue Jan 13, 2020 · 1 comment
Open

Add query methods #4

alastair opened this issue Jan 13, 2020 · 1 comment

Comments

@alastair
Copy link
Member

We need methods to be able to query items in the CE.
An advantage of GraphQL is that we can request exactly the fields and relationships that we need, and so I'm not sure how we should make these methods.
Some options:

  • Provide a method to perform a request, but not to generate query text - let the user write the query that they want
  • provide some generic query texts so that most uses are covered
  • generate an interface that has parameters to include particular relations (this is the most complex solution and should only be done if we find a real need for it)
@pc2752
Copy link
Contributor

pc2752 commented Jan 29, 2020

Working on option 2.

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

2 participants