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

Use GraphQL more like GraphQL #39

Open
Edward-Upton opened this issue Aug 25, 2022 · 0 comments · Fixed by #54
Open

Use GraphQL more like GraphQL #39

Edward-Upton opened this issue Aug 25, 2022 · 0 comments · Fixed by #54

Comments

@Edward-Upton
Copy link
Contributor

GraphQL is meant to make querying simpler, with a set schema independently used by the client and server.

Currently, the approach is to create a new Query/Mutation every time we want to add some client/server functionality. What we should be doing instead is making more generic Queries/Mutations that make use of optional arguments. For example instead of having separate element data and permission updates, instead, create a updateElement that allows changing all attributes, with fully customizable options passed in.

A similar thing goes for queries. Instead of having a separate query for getting elements with/without children, we should just put this in one query with an optional argument to adjust the results.

On the caching side, we can choose how to perceive the changes dependent on the arguments.

@Edward-Upton Edward-Upton added enhancement New feature or request low-priority labels Aug 25, 2022
@Edward-Upton Edward-Upton added this to To do in Fully Customizable Platform via automation Aug 25, 2022
@Edward-Upton Edward-Upton linked a pull request Sep 18, 2022 that will close this issue
Fully Customizable Platform automation moved this from To do to Done Sep 18, 2022
@Edward-Upton Edward-Upton reopened this Sep 18, 2022
Fully Customizable Platform automation moved this from Done to In progress Sep 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request low-priority
Projects
Development

Successfully merging a pull request may close this issue.

1 participant