UNPKG

@graphql-mesh/transport-rest

Version:
13 lines (12 loc) 384 B
export 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, }; }; }