Skip to content

Unify execution metadata #882

Closed
Closed
@rmosolgo

Description

@rmosolgo

There are a lot of non-user-facing objects created to resolve a GraphQL query:

  • Tokens
  • AST nodes
  • Irep nodes
  • FieldResolutionContexts
  • FieldResults
  • SelectionResults
  • (and plenty more: Lazies, LazyConnectionWrapper, Irep Scopes ... 😬 )

I think some of these could be merged into one: FieldResolutionContext, FieldResult, SelectionResult. They all form a tree which corresponds to the final result. Merging them would open some interesting doors:

Also, it would be a performance improvement due to fewer allocations (#861)

I don't have a priority for this; I want to get a few features finished out first. But I thought I'd open the issue so people know that the idea is out 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