I may be missing something here, but consider this example.
JSON:
[
{
"id": 1,
"name": "John",
"projects": ["Go","Python","AI"]
},
{
"id": 2,
"name": "Jerry",
"projects": ["Go","AI"]
},
{
"id": 4,
"name": "Joe",
"projects": ["AI"]
}
]
If I have a JSON document like this and I want to query for all objects containing AI in the projects slice, how do I do that? I tried WhereIn(), but that does not seem to help!
I may be missing something here, but consider this example.
JSON:
[ { "id": 1, "name": "John", "projects": ["Go","Python","AI"] }, { "id": 2, "name": "Jerry", "projects": ["Go","AI"] }, { "id": 4, "name": "Joe", "projects": ["AI"] } ]If I have a JSON document like this and I want to query for all objects containing AI in the projects slice, how do I do that? I tried WhereIn(), but that does not seem to help!