How would I include a relationship data in this type of query
const transactions = await transactionService.readByQuery({
filter: {
trans_type,
},
limit,
offset,
});
How would I include a relationship data in this type of query
const transactions = await transactionService.readByQuery({
filter: {
trans_type,
},
limit,
offset,
});
It’s kinda hard to provide really great advice with such limited context. Maybe you could add some more details here, and myself or other community members could definitely help you out.
But in most cases, if you’re trying to fetch relationship data, you need to pass the details of what you’re trying to fetch via the fields
parameter.
I would highly recommend you take a look at the documentation for all the query parameters that are available:
→ Fields → Query Parameters Documentation
If you can share more specifics about:
We can definitely provide more targeted help!