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

GraphQL support #4

Open
UpcraftLP opened this issue Apr 21, 2021 · 3 comments
Open

GraphQL support #4

UpcraftLP opened this issue Apr 21, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@UpcraftLP
Copy link
Collaborator

would it be possible to expose a GraphQL endpoint of the API, in addition to the current REST one?

@Haven-King Haven-King added the enhancement New feature or request label Apr 21, 2021
@Haven-King
Copy link
Contributor

I could look into adding a GraphQL endpoint. It would be entirely separate from this project just because of the nature of GraphQL, but it shouldn't be too difficult to get running.

@UpcraftLP
Copy link
Collaborator Author

because of the nature of GraphQL

could you elaborate what you mean by that, specifically?

Assuming the underlying object structure is detached enough from the actual api routes, it shouldn't be hard to integrate.

And, worst case you could simply wrap the REST api with GraphQL. (not as efficient as only querying exactly what is needed, but could still save some bandwidth)

@Haven-King
Copy link
Contributor

Currently, meta is served entirely statically. Because the API is deterministic and REST API's are made entirely via the address, no computation is needed. All this project does is generate those static files that are served for queries.

What I'll likely end up doing is indeed wrapping the REST API with GraphQL. It shouldn't be hard to get setup, and the small amount of inefficiency isn't a huge concern given that all of the backend data is able to be accessed so quickly.

@Akarys42 Akarys42 transferred this issue from QuiltMC/quilt-meta Jan 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants