Skip to content

EvaluateCodeResponse

Source code in docs_src/capo_appsync/types/evaluate_code_response.py
class EvaluateCodeResponse(TypedDict, closed=True):
    evaluation_result: NotRequired[
        "capo_appsync.types.evaluation_result.EvaluationResult"
    ]
    """<p>The result of the evaluation operation.</p>"""
    error: NotRequired[
        "capo_appsync.types.evaluate_code_error_detail.EvaluateCodeErrorDetail"
    ]
    """<p>Contains the payload of the response error.</p>"""
    logs: NotRequired["capo_appsync.types.logs.Logs"]
    """<p>A list of logs that were generated by calls to <code>util.log.info</code> and <code>util.log.error</code> in the evaluated code.</p>"""
    stash: NotRequired["capo_appsync.types.stash.Stash"]
    """<p>An object available inside each resolver and function handler. A single <code>stash</code> object lives through a single resolver run. Therefore, you can use the stash to pass arbitrary data across request and response handlers and across functions in a pipeline resolver.</p>"""
    out_errors: NotRequired["capo_appsync.types.out_errors.OutErrors"]
    """<p>The list of runtime errors that are added to the GraphQL operation response.</p>"""

error instance-attribute

error: NotRequired[EvaluateCodeErrorDetail]

Contains the payload of the response error.

evaluation_result instance-attribute

evaluation_result: NotRequired[EvaluationResult]

The result of the evaluation operation.

logs instance-attribute

logs: NotRequired[Logs]

A list of logs that were generated by calls to util.log.info and util.log.error in the evaluated code.

out_errors instance-attribute

out_errors: NotRequired[OutErrors]

The list of runtime errors that are added to the GraphQL operation response.

stash instance-attribute

stash: NotRequired[Stash]

An object available inside each resolver and function handler. A single stash object lives through a single resolver run. Therefore, you can use the stash to pass arbitrary data across request and response handlers and across functions in a pipeline resolver.