realm-dotnet
realm-dotnet copied to clipboard
Support queries for arrays of primitives
Hi guys, is there any estimate on when support for querying primitive arrays will make it into the .net library?
Not yet - this is something that the Core team is currently working on and we hope to pick it up shortly after they release it.
Not yet - this is something that the Core team is currently working on and we hope to pick it up shortly after they release it.
thanks for the quick reply, just so I can fully understand is this functionality possible if not using the linq functions? e.g. if I was to manually Filter
with a predicate.
Using the Filter extension method and providing a string predicate should work, but we don't have tests for it in the .NET SDK. We should definitely add some though - no need to tie those to proper LINQ support.
Using the Filter extension method and providing a string predicate should work, but we don't have tests for it in the .NET SDK. We should definitely add some though - no need to tie those to proper LINQ support.
my non-extensive tests today show that it does work which is great as we already sidestepping the LINQ support to do direct queries, we found a few cases where we needed more granular control. Thanks for the information 👍
I couldn't get this to work with a string predicate query and couldn't find documentation on this feature, any chance of getting an example in the docs please?
@jbickerton we need to improve this part in our documentation. I agree with you. So, thank you for the feedback. We usually recommend users to borrow the JS query language tutorial. If you have used this resource already and you still can't get the query to work, you could post it on the MongoDB forum to get help from us.
Thanks for getting back to me with that link, the queries there are working for me. For reference, I am using something like .Filter("ANY Tags CONTAINS 'test'")
to query on IList<string> Tags
when any tag contains the string "test".