Skip to content

[Question] Return the query root in a mutation response payload #1167

@rocketraman

Description

@rocketraman

I would like to return the query root in a mutation response payload, as described here: https://graphql-rules.com/rules/mutation-payload-query.

Is there a way to do this? I tried returning the value of DataFetchingEnvironment.getRoot() on a Query type, but that didn't work.

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