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
- Android SDK: Kotlin null Value Not Updat...
Hi team, I think you should check the Android SDK implementation once, as it seems to have an issue handling Kotlin **null** values. For example: When I send:...
- Can't connect GitHub β 500 error at the ...
Appwrite Cloud, Pro plan, SFO region. All my Git connections vanished today β Sites and all 15 Functions now show no repository connected. When I try to add a ...
- GB Hours IS NOT resetting
Hi, I was checking my usage and noticed that all of my usage quotas were reset on August 20, 2026, when my billing cycle renewed. Everything else appears to ha...