Back-relation expand but for a specific user Id #3728
Unanswered
MuslemRahimi
asked this question in
Q&A
Replies: 1 comment 1 reply
-
You can try specifying the output = await locals.pb.collection('posts').getList(1, 10, {
expand: 'user, comments(post), alreadyVoted(post)',
fields: "*,expand.alreadyVoted(post).user"
}); (The |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have a weird case where i want to back expand
where my output for the "alreadyVoted" collections is
Here is my problem. I dont want to expand to get all user data for this collection but rather only for the userId = 'db5s41oatgoeh0q'.
Is there a way to do this elegantly?
Beta Was this translation helpful? Give feedback.
All reactions