Open
Description
I am considering writing similar to Join Monster (a GraphQL to SQL translation framework) using Sangria.
The final goal would be to take one GraphQL query and transform it to a single SQL query which then returns all data in a table-like format (e.g. CSV or Excel).
I've read the Sangria documentation and I think I might be running into two problems:
- AFAIU I could create partial SQL queries using the
Deferred
mechanism, but I'm not sure if I can create aDeferred
that does not return a final result that conforms to the specified schema, but rather some representation of the query itself. - I don't know if it's possible to create a flat, table-like export in the end, or if the assumption that the result mirrors the GraphQL query makes this impossible.
Would something like what I am planning be possible at all in Sangria? If so, can you give me any pointers how I could solve the above issues?
Thanks a lot!