Skip to content

Grab a field value of an array in POST Request payload #762

Answered by 255kb
joychester asked this question in Help
Discussion options

You must be logged in to vote

You cannot get these elements in a single array directly with the body or bodyRaw helpers. The syntax is based on object-path and only supports paths like this: 0.id or 1.id.

But depending on what you want to achieve you can get each of them:

// get ids one by one
{{#each (bodyRaw)}}
  {{id}},
{{/each}}

Replies: 1 comment 1 reply

Comment options

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

Answer selected by joychester
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #761 on July 21, 2022 08:12.