Nested Object not deserializing

Using a BucketContext and Linq2Couchbase, I get an error when I try the following query:

IQueryable[Article] query = (from q in _context.Query()
where q.Type == “Article” && q.Archived == false
select new Article
Headline = q.Headline,

References = q.References,


References is a List[T] that has two string properties: Title and URL.

When the query runs, the following error results: Could not cast or convert from System.String to [T].

Thanks for the help!

My bad. There was malformed data in the document.

@markc -

No problem, glad you found a solution!