I tried running 2 include on a multi ref fields. When doing so, encountered an error that says you cant do more than one include for multi-ref fields (why?).
This is the query:
Because I have to have both fields, I decided to divide it into 2 separate queries:
but the second query didn’t run at all.
I thought it was an issue with the query itself so i tried to put the same query as the first one (which works fine) and even though they were identical, the second one did not run:
How can I achieve this\ why is this happening?
Hi Rafael,
what did you mean by “did not run”? Did it throw an error? Did the log statements after the first and second queries produce the output?
Thank you.
Hey Giedrius,
In the code above, the error in the catch did not pring also I put a log right after and it did not print. Thats why I figured it didnt ran. I also hooked up stackdriver and looked for the logs there - but didnt see it.
Is there a way to disable to the 1 include() limitation altogether? If not, how can I make these 2 queries work?
Thanks!
@refael there is currently no way to disable the include limitation.
Your code looks fine, so it’s still a mystery to me why this is happening. If you could share the example case in your site via private message, I might be able to get some more insights into this.