Skip to content
Discussion options

You must be logged in to vote

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:

var doc= await _session.Query<WorkflowType, WorkflowTypeIndex>(x => x.DocumentId == myWorkflowType.Id).FirstOrDefaultAsync();

// or just query directly
var doc= await _session.GetAsync<WorkflowType>(id);

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@wyarcdev
Comment options

Comment options

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