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 for events #901

Open
James-Mart opened this issue Oct 30, 2024 · 1 comment
Open

Graphql support for events #901

James-Mart opened this issue Oct 30, 2024 · 1 comment
Assignees

Comments

@James-Mart
Copy link
Member

There ought to be a way to easily query events that returns a graphql result. If it's simpler, the query itself could still be made using SQL syntax, but we would need to be able to map the response into something graphql compatible...

Thoughts?

@swatanabe
Copy link
Collaborator

I don't understand what the goal is. The result of the SQL query is JSON. The only difference from GraphQL is that GraphQL adds an extra {"data":..} around the query result. The reason the queries use SQL rather than GraphQL in the first place is that the data model of the event log maps better to SQL (tables, rows, and columns) than it does to GraphQL (no way to traverse the graph, because we don't know what event fields refer to the same entity).

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