Skip to content

Nested Relational Query Returns Empty Arrays (Including Admin Panel Filtering) #9852

Answered by Kenji-Nguyen
Kenji-Nguyen asked this question in Q&A
Discussion options

You must be logged in to vote

Solution is found here:
https://discord.com/channels/967097582721572934/1324460994906558504/1326256604819226624

Quoting Eustachio: "I have found the answer for this, basically relationship id has to be ObjectId. From Payload V2 the relationship field (non-polymorphic) to websites was a string and in Payload V3 it is an ObjectId, once I went to each document where the websites relationship was and saved it, the field turned into an ObjectId and all the queries worked back again."


Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Kenji-Nguyen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant