Skip to content

Retrieve all data in one go, export flat result #286

Open
@nightscape

Description

@nightscape

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:

  1. AFAIU I could create partial SQL queries using the Deferred mechanism, but I'm not sure if I can create a Deferred that does not return a final result that conforms to the specified schema, but rather some representation of the query itself.
  2. 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions