Not able to create float/double attributes & relationships
- 0
- Self Hosted
- Databases
- General
- REST API

I am currently building a multiple-environment application using AppWrite self-hosted. Between my mobile application and AppWrite, there would be an additional Middleware layer that I would like to use to expand the capabilities of AppWrite. I am currently working on a database structure migration script that I could use to import the database structure from one environment to another without manually creating each collection and attributes one by one. What I've done:
- Manually created the collections & attributes using the AppWrite console interface on local selfhosted;
- Using Postman I've returned the JSON containing the database structure targeting "v1/databases/<databaseId>/collections";
- I've saved the returned JSON inside a file in my middleware and then run the script to import the data;
- Everything works properly(all the collections and attributes are created) except for two attributes of type "double" and "relationships".
This is what a double attribute looks like: { "key": "scoring_value", "type": "double", "status": "available", "error": "", "required": false, "array": false, "min": 0, "max": 5, "default": 1 } This is how the relationship attribute looks like: { "key": "videos", "type": "relationship", "status": "available", "error": "", "required": false, "array": false, "relatedCollection": "669e76f600357827e736", "relationType": "oneToOne", "twoWay": false, "twoWayKey": "669e77680011150508a5", "onDelete": "setNull", "side": "parent" } To be mentioned is that I've also tried using "float" instead of "double" but with no success.
Recommended threads
- grant permisions only to users in collec...
I'm building a web app and instead of using Appwrite Auth, I made my own custom auth system that stores user data in documents. I have a "Profile" page where lo...
- Document Data is null.
I'm using flutter and I've just got everything set up, the document meta data is null but the actual query is fine. (see screenshot) The permission I have ar...
- cli 5.0.5 command for pull and push of d...
Hi i am using selfhosted appwrite 1.5.10, for migration (duplicate project) purpose i am using cli 5.0.5, but i am unable to find commands for pull and push, wh...
