Ankit ManiyaOriginal post
Rank 2: Process
for example in teams' pref i have
pref = {
"code": "CDJKUE"
}
I have created query like below
TeamList teamList = await teams.list(queries: [
Query.equal("prefs", ["CDJKUE"])
]);
type of queries in teams is
{List? queries}
{"error":"AppwriteException: general_argument_invalid, Invalid queries param: Invalid query: Attribute not found in schema: prefs (400)"}
Summary
Developers want to query for prefs in Teams but are getting an error because the attribute 'prefs' is not found in the schema. To find the team name based on prefs data code, the correct query should be:
```
TeamList teamList = await teams.list(queries: [
Query.equal("prefs.data.code", ["CDJKUE"])
]);
```