-
Notifications
You must be signed in to change notification settings - Fork 6
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 GraphQL Endpoint - REST handler to accept graphQL requests #16
Comments
Had some discussion about the different handlers and their roles. The main takeaways are that there will be three primary endpoints:
A big point is that GraphQL engines should be maintained in-memory to validate and execute queries. These are computed based on schemas. For consistency and validation, the schema objects should be immutable once created, so updating a schema should involve an explicit create-migrate-delete process. To manage and cache engines, a special manager object should be written later. Some short-term future work is to add functionality to:
Another open question for later is what internal representations to translate to, in order to execute queries. The main choices are DSL and SQL. DSL has the advantage of being the native OpenSearch format but has relatively limited functionality making representation generation harder. SQL is more flexible and ubiquitous, but it's likely to involve more work upfront. The two have similar performance. |
What ?
Add GraphQL endpoint for receiving graphQL queries
Steps
Select java GraphQL framework -
-- https://github.com/chentsulin/awesome-graphql#java-examples
-- https://github.com/graphql-java/awesome-graphql-java
Add Rest Handler
Add Validation
Parse query
Dispatch request to appropriate GraphQL controller
Process the query
Submit response
First stage
checkout https://docs.github.com/en/graphql/guides/introduction-to-graphql#discovering-the-graphql-api
The text was updated successfully, but these errors were encountered: