Skip to content

Improve AST manipulation options #455

Closed
@rmosolgo

Description

@rmosolgo

I think there are some good use cases for working with strings from Ruby:

  • Programmatically building or modifying a query, as in graphql-client
  • Merging queries together as in Merging GraphQL Queries Together #406
  • Handling subscriptions efficiently (eg, unioning all queries into one, resolving it once, then distrubuting the requested parts of the response to the various subscribers)

However, this gem provides nothing for doing that. The best API would be one that doesn't reference AST node classes by name, instead, something decoupled from that, in case we have to change the nodes in the future.

I heard good things about estools a while back, there may be some inspiration there!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions