MCPcopy Create free account
hub / github.com/aws-samples/aws-appsync-resolver-samples / response

Function response

samples/opensearch/simpleTermQuery.js:36–41  ·  view source on GitHub ↗
(ctx)

Source from the content-addressed store, hash-verified

34 * @returns {*} the result
35 */
36export function response(ctx) {
37 if (ctx.error) {
38 util.error(ctx.error.message, ctx.error.type);
39 }
40 return ctx.result.hits.hits.map((hit) => hit._source);
41}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected