Skip to content

Commit

Permalink
PR Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
oskardudycz committed Nov 3, 2019
1 parent 1b734f5 commit 790cb27
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions documentation/documentation/documents/json/newtonsoft.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,11 @@ by changing the serialization settings in the `DocumentStore` options.

Marten by default stores the collections as strongly typed (so with $type and $value). Because of that and current `MartenQueryable` limitations, it might result in not properly resolved nested collections queries.

You can change collection storage to `AsArray` then custom `JsonConverter` that will store:
Changing the collection storage to `AsArray` using a custom `JsonConverter` will store it as regular JSON array for the following:
- `ICollection<>`,
- `IList<>`,
- `IReadOnlyCollection<>`,
- `IEnumerable<>`
as regular JSON array.
- `IEnumerable<>`.

That improves the nested collections queries handling.

Expand Down

0 comments on commit 790cb27

Please sign in to comment.