-
|
ISession.Query with index returns null even though record exists I'm querying a WorkflowType using its index, but it returns null despite the record existing: var type = await _session.Query<WorkflowType, WorkflowTypeIndex>(x => x.Id == id).FirstOrDefaultAsync();When I call this with id = 19, it returns null. However, I've confirmed the record exists by checking the list directly. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
What's the OC version? Does this happen with |
Beta Was this translation helpful? Give feedback.
-
|
I've figured it out, when querying with index, when I use "Id" it refers to the MapIndex Id. The proper way to query is: |
Beta Was this translation helpful? Give feedback.
I've figured it out, when querying with index, when I use "Id" it refers to the MapIndex Id. The proper way to query is: