Definitiondirective @mapTo(objectField: String!) on FIELD_DEFINITION
You can use the @mapTo directive to map/rename values from the upstream response.
Example usagetype Headers {accept: String! @mapTo(objectField: "Accept")host: String! @mapTo(objectField: "Host")acceptEncoding: String @mapTo(objectField: "Accept-Encoding")}
In this case the upstream responds with a field named "Accept" which will be mapped to the GraphQL field "accept".