Replies: 2 comments 8 replies
-
You have to specify which collections to look at explicitly, like so:
|
Beta Was this translation helpful? Give feedback.
8 replies
-
The way to do it is to use:
We might support dynamic collection name in |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey folks
I've ran into a situation that I can't find a solution for.
I have a
Post
class that can have parents of several types, let's sayForum
andCompany
.I have modelled pinned posts by storing an array in the parent, with information about the order of pinned posts.
I then want to index the posts and query for pinned posts alone:
This compiles, but fails to set
IsPinned
properly, because the collection name is missing on theLoad
call.I worked around it by copying the
IsPinned
property to the post itself.Is there another solution that doesn't require that?
Beta Was this translation helpful? Give feedback.
All reactions