-
I have following entities:
List user's enrollements: from enr in session.Query<Enrollment>()
where enr.UserId == userId
let c = RavenQuery.Load<Course>(enr.CourseId)
select new {
Id = c.Id,
Title = c.Title,
Tags = c.Tags,
Progress = enr.someProgress
} This seems to work, now I want to filter results based on tags.
Is there a better solution? |
Beta Was this translation helpful? Give feedback.
Answered by
ayende
Oct 28, 2023
Replies: 1 comment
-
You are looking at querying related documents, this is covered here: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
dubik
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You are looking at querying related documents, this is covered here:
https://ravendb.net/docs/article-page/6.0/csharp/indexes/indexing-related-documents