Skip to content

How to access the requested fields inside of a Controller, or the final map result before sending a response? #1119

@fhernandez-clgx

Description

@fhernandez-clgx

As the title said, I am wondering if there is a way to either access the requested fields, for example, in the following query:

query { geoMappings(stateId: "01") { stateId stateAbbr stateName } }

I would like to know that the user requested the stateId, stateAbbr and stateName fields.

Also, is it possible to access and manipulate the resulting map before sending a response to the client? In the previous query, I require to remove any duplicate objects in the resulting map, regardless of there existing multiple objects that match the condition in the database.

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: stackoverflowA question that's better suited to stackoverflowstatus: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions