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
- The console isnt showing documents
In console ui saved documents are being shown on frontend but i can see its showing 4 or number of docs available but in rows its only showing single doc and th...
- Create a project via REST API or SDK, mi...
I am currently self-hosting Appwrite in my local machine, deployed using docker script in the website. I also installed `appwrite-cli` through npm. I am trying...
- 1.8.1 - Databases - inline updating a ro...
When updating a database field via the inline edit method, the `$updatedAt` column does not get updated. Only if the row is updated by the "Update" interface (t...