Getting error on accessing $ prefixed fields while using Dart for Appwrite.
- 0
- Flutter
- Functions
- Cloud
I am using dart 2.17 for creating appwrite function,
Usecase:
- Trying to create use document on every user creation.
Error:
- When i try to access '$id' field of user from event data i am getting error shown in screenshot.
- Interesting thing is when i log the same id with context.log it is working fine
If you guys can suggest how should i write functions with dart so that i can use inbuild models like user and others ,if possible please share similar kind of working function.
Getting error on accessing $ prefixed fields while using Dart for Appwrite.
Can you try to remove the .toString(), and see if it works?
Super weird that it works with context.log and not when assigning
Holy s*** ,while reading the code i found that i have called $id directly on user object
In the permissions object?
Yes and after changing that it is working
Ah okay
Yeah iβve been in similar situations and itβs such a shocker realizing the silly mistake π©π
Thanks for response i m closing this silly issue
hahaha no worries ππ
Recommended threads
- general_route_not_found - Auth Guide
If youβve just added a subdomain to your project, verified your DNS records, and confirmed your SSL certificate is working, but you're still hitting a `general_...
- Can't resume paused project
I have logged in in incognito, done the email verification and still get the invalid fingerprint error. What's the issue.
- Download appwrite Docs
Is there is a way to download appwrite Docs ? Because appwrite skill isn't enough to give the agent full understanding about how appwrite works (I noticed this ...