[CSHARP-1902] Projection: Exception Unable to determine the serialization information nested array field Created: 26/Jan/17  Updated: 13/Oct/17  Resolved: 13/Oct/17

Status: Closed
Project: C# Driver
Component/s: Linq
Affects Version/s: 2.4.1
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: VItaliy Assignee: Robert Stam
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

I'm trying to include nested array object field in projection

Include(x => x.Attempts.Select(a => a.Success))

Gives me following exception

    Unable to determine the serialization information for x => x.Attempts.Select(a => a.Success)

Text version .Include("attempts.success") works fine



 Comments   
Comment by Robert Stam [ 02/Mar/17 ]

Can you please provide the C# declarations of your classes, as well as a JSON sample of the documents in your database?

I'd like to reproduce this.

Generated at Wed Feb 07 21:41:00 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.