In my mongodb, I have an array of objects that looks something like this.
[
{
_id: 123,
info: [
{
name: John,
random: ['31', 'food', 'sleep']
}
]
},
{
_id: 234,
info: [
{
name: Amy,
random: ['tv', 'food', 'sleep']
}
]
},
{
_id: 345,
info: [
{
name: John,
random: ['cars', 'tv31', 'sleep']
}
]
},
]
In C# how would I filter on info where name is John and random contains 31? I also don’t know what the difference is between the AnyIn vs In.
1