This is the result I am getting -
“results”: [
{
“group_id_record”: [
“75c5c7ee2c78c567d87d4ce0c85381e0”
],
“id”: “2d90e5786e76522ee44da8aa65704790”,
“type”: “app_detail”
},
{
“group_id_record”: [
“ae6c71abcf796f7ef052958dc203b67b”,
“75c5c7ee2c78c567d87d4ce0c85381e0”
],
“id”: “c9bfb382fa49c7b714007e2112a37bdd”,
“type”: “app_detail”
},
{
“created_by”: “bce541f098561c019676059e06127fe8”,
“id”: “75c5c7ee2c78c567d87d4ce0c85381e0”,
“name”: “Black Berry”,
“type”: “group”
},
{
“created_by”: “bce541f098561c019676059e06127fe8”,
“id”: “ae6c71abcf796f7ef052958dc203b67b”,
“name”: “Rasp Berry”,
“type”: “group”
},
{
“account_active_type”: 2,
“created_by”: “0”,
“first_name”: “Aaozul”,
“id”: “2”,
“last_name”: “Axim”,
“type”: “user”,
“user_type”: 6
},
{
“account_active_type”: 2,
“created_by”: “0”,
“first_name”: “Aaozul”,
“id”: “1”,
“last_name”: “Axim”,
“type”: “user”,
“user_type”: 6
},
{
“account_active_type”: 0,
“created_by”: “bce541f098561c019676059e06127fe8”,
“first_name”: “Raihan”,
“id”: “2d90e5786e76522ee44da8aa65704790”,
“last_name”: “Haque”,
“type”: “user”,
“user_type”: 4
},
{
“account_active_type”: 2,
“created_by”: “1”,
“first_name”: “Baozul”,
“id”: “bce541f098561c019676059e06127fe8”,
“last_name”: “Axim”,
“type”: “user”,
“user_type”: 0
},
{
“account_active_type”: 0,
“created_by”: “bce541f098561c019676059e06127fe8”,
“first_name”: “Fiverr”,
“id”: “c9bfb382fa49c7b714007e2112a37bdd”,
“last_name”: “Mail”,
“type”: “user”,
“user_type”: 4
}
]
But I want to filter data with specific id, but that filter is only for document type ‘app_detail’. If I write query like this “WHERE appDetail.id = ‘someid’” – then this filters all documents regardless of types. But that WHERE clause is only for documents with specific type like app_detail.