I have an existing database collection. The collection already has multiple documents. I tried to add a new attribute called "rating" with default value of 0. The attribute was added in all documents but its value was set to "null" rather than 0. Isn't it a bug ? How to set it to 0 ?
I noticed when i set a default boolean value in my collection i was also just getting null, even from the console it didn't reflect. Looks like a bug, let's see what the Pro's have to say
This is expected. Appwrite doesn't automatically set the value for old documents. You can use a server SDK to update old documents:
https://github.com/appwrite/appwrite/issues/2768#issuecomment-1506322491
Recommended threads
- Rate límit reset
I've made an error in the code by not setting a limit on how much rows should i get per request because i was working with a small db for testing. Last night Iv...
- How to set permissions using the createO...
Hi, I'm trying to create a set of registers in a table using the tableDB.createOperations function, but it seems like it doesnt support/expect the usage of the ...
- I reached my budget limit how?
Hi, I got a message saying I reached my budget limit already? Makes no sense? In 4 days I reached 3.4M reads in a project how with only 100 users? This is my pr...