Rank 1: Thread
help me fix it as i'm trying to get specifc last document of specific user... maybe it's wrong direction
response = await database.list_documents(database_id, collection_id, [ Query.equal("$permissions.read", [f"user:{user_id}"]),Query.limit(1), Query.order_desc('$createdAt')])
Got - Error getting the latest document: Invalid query: Attribute not found in schema: $permissions ....