shahpriyansh04
shahpriyansh0411mo ago

Access nested fields in a query function

How can we access a field that is nested insde another field Eg: I want to access the seller id in a query function. details: v.array( v.object({ itemId: v.id("products"), sellerId: v.string(), }) ),
1 Reply
Michal Srb
Michal Srb11mo ago
This is JavaScript:
const sellerId = args.details[0].sellerId;
const sellerId = args.details[0].sellerId;
You can map() etc.

Did you find this page helpful?