Does payloadcms support nested select? #11085
antofopera
started this conversation in
General
Replies: 0 comments
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
For example, I want to get the ID of the author:
But this does not work, I had to get the whole
author
and extract theid
.According to the docs and code:
It should have worked?
Edited: You can set
depth: 0
to get only the ID of the related document, andpopulate
to return only specific fields. But the nature of thisselect
option is still puzzling (it should supported nested selection, but it doesn't)?Beta Was this translation helpful? Give feedback.
All reactions