@graphql-mesh/transport-rest
Version:
17 lines (16 loc) • 588 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.processResponseMetadataAnnotations = void 0;
function processResponseMetadataAnnotations(field) {
field.resolve = function responseMetadataResolver(root) {
return {
url: root.$url,
headers: root.$response.header,
method: root.$method,
status: root.$statusCode,
statusText: root.$statusText,
body: root.$response.body,
};
};
}
exports.processResponseMetadataAnnotations = processResponseMetadataAnnotations;
;