Back
What are the all possible queries can be passed to ```users.list``` ?
- 0
- Self Hosted
- Functions
- Auth
TypeScript
final userList = await users.list(queries: [
Query.offset(offset),
Query.limit(limit),
Query.notEqual('accessedAt', ""),
]);
TypeScript
AppwriteException: general_argument_invalid, Invalid `queries` param: Invalid query: Attribute not found in schema: $accessedAt (400)
TypeScript
{
"total": 5,
"users": [
{
"$id": "5e5ea5c16897e",
"$createdAt": "2020-10-15T06:38:00.000+00:00",
"$updatedAt": "2020-10-15T06:38:00.000+00:00",
"name": "John Doe",
"password": "$argon2id$v=19$m=2048,t=4,p=3$aUZjLnliVWRINmFNTWMudg$5S+x+7uA31xFnrHFT47yFwcJeaP0w92L/4LdgrVRXxE",
"hash": "argon2",
"hashOptions": {
"type": "argon2",
"memoryCost": 65536,
"timeCost": 4,
"threads": 3
},
"registration": "2020-10-15T06:38:00.000+00:00",
"status": true,
"labels": [
"vip"
],
"passwordUpdate": "2020-10-15T06:38:00.000+00:00",
"email": "john@appwrite.io",
"phone": "+4930901820",
"emailVerification": true,
"phoneVerification": true,
"mfa": true,
"prefs": {},
"targets": [
{
"$id": "259125845563242502",
"$createdAt": "2020-10-15T06:38:00.000+00:00",
"$updatedAt": "2020-10-15T06:38:00.000+00:00",
"name": "Aegon apple token",
"userId": "259125845563242502",
"providerId": "259125845563242502",
"providerType": "email",
"identifier": "token"
}
],
"accessedAt": "2020-10-15T06:38:00.000+00:00"
}
]
}
TL;DR
Developers want to know possible queries for ```users.list```. One query mentioned is to fetch active users with a specific offset, limit, and accessedAt not empty. However, an error occurred as the attribute ```accessedAt``` was not found in the schema.any query to to fetch list where the user is most active
Recommended threads
- Inviting members while SMTP is disabled ...
Issue: https://github.com/appwrite/console/issues/3125 PR: https://github.com/appwrite/console/pull/3126
- How to disable appwrite/embedding from s...
Hi everyone! I'm currently running a self-hosted instance of Appwrite. For my current use case, I don't need the AI/embedding features, and I noticed the `app...
- Invalid type for attribute 'email': emai...
I'm using the node-appwrite SDK to create a table, the column payload looks like this: ```json [{"key":"email","type":"email","required":true, "size": 512}] ``...