Skip to content

Discrepancy in docs? #144

Answered by Gi60s
dabernathy89 asked this question in Q&A
Aug 16, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hello @dabernathy89. I think I understand what you're asking, but if not then please feel free to ask again.

The Operation.response() function does return an EnforcerResult object. The EnforcerResult.value property will contain an object with the body, header, and schema properties.

There are a few ways to get the value out of the EnforcerResult object. The example given for the Operation.response() uses index desctructuring to get out the value out of the EnforcerResult object.

Let me know if I've answered the question for you or not.

Thanks.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dabernathy89
Comment options

Answer selected by dabernathy89
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants