If we use the “tagged” format, it creates a need for a language-specific driver. For example, Fauna does not have a driver for Dart. I also don’t think you are working on this. Therefore, you are distancing yourself from thousands of developers who are building mobile applications with Flutter today.
The words “id” and “coll” are reserved keywords. I thought that we wouldn’t be able to use them within simple objects because they are listed as reserved in the documentation. It would be enough to consider an object containing only “id” and “coll” as a Ref.
This code is the JSON output that Fauna provides me. It serializes Ref objects exactly like this. However, when I send the same code back to Fauna, it interprets it differently. I think there is an inconsistency here.
{
"privateUserRef": {
"id": "421793101252657216",
"coll": "PrivateUser"
},
"accountRef": {
"id": "421793101311377472",
"coll": "Account"
},
"name": "Birikim",
"primary": true,
"currencyCode": "TRY"
}
Actually, we didn’t necessarily need a JSON object to create a Ref. Something like this would have worked as well:
{
"privateUserRef": "PrivateUser(421793101252657216)",
"accountRef": "Account(421793101311377472)",
"name": "Birikim",
"primary": true,
"currencyCode": "TRY"
}
If we could send a string like this for Ref fields and Fauna recognized it as a Ref, we wouldn’t have any issues.
Currently, the PrivateUser(123) format that Fauna wants us to use in queries is an undefined data type on the Dart side, making it impossible to serialize for objects.
Currently, 28% of new mobile applications on the App Store are developed with Flutter. This percentage is even higher for the Play Store.
Fauna has access to a huge potential. I don’t know if you are planning to develop a driver for the Dart language, but with a small adjustment, you can eliminate this need.
Flutter developers, like me, can create their queries using the VSCode extension, send them as a string to Fauna, and easily include their serialized data within these queries.
Thank you for your time. I hope the Fauna team considers my suggestion and agrees with me that reaching Flutter developers would add great value to Fauna.