i get an error while finding a save post, but in the attribute the save exist under user.
error is: TypeError: Cannot read properties of null (reading 'find')
line: const savedPostRecord = currentUser?.save.find(
(record: Models.Document) => record.post.$id === post.$id
);
My user is: tonymelony
and project id = 65a321d6b97507a5464a
Recommended threads
- Attributes Confusion
```import 'package:appwrite/models.dart'; class OrdersModel { String id, email, name, phone, status, user_id, address; int discount, total, created_at; L...
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...
- Edit ID of an existing collection
Hi there. Is it possible to edit an ID of an existing collection? Right now it looks impossible from AppWrite cloud at least.