Skip to content

Is there a good way to ask if a quey contains a certain field? #348

Closed
@ekampf

Description

@ekampf

for example:

query {
   viewer {
       id
       friends
    }
}

I want resolve_viewer to be able to ask if we're querying for friends under viewer so it can do some prefetching...
Also needs to support fragments because the query above could be written as:

query {
   viewer {
       ...F1
    }
}
fragment F1 on ViewerType {
   id
   friends
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions