When I use the appwrite CLI to create an appwrite.json with appwrite pull collections --all --force, I get indices that look like this:
TypeScript
{
"key": "obj_types",
"type": "key",
"status": "available",
"attributes": [
"obj_types"
],
"orders": [
null
]
},
The problem here is the "orders": [null], this is invalid and causes appwrite push collections --all --force to quit with an error. It should be "orders": [].
TL;DR
Issue: When developers use the appwrite CLI to create an `appwrite.json` with `appwrite pull collections --all --force`, the indices generated contain incorrect syntax, specifically `"orders": [null]` instead of the correct form `"orders": []`.
Solution: For a fix, developers need to manually adjust the generated `appwrite.json` file to replace `"orders": [null]` with the proper syntax of `"orders": []`.Recommended threads
- User ID case sensitivity
I see that through REST (and SDK as well), getting a user is not case sensitive. And even though documentation does not clearly state that it is, the wording "V...
- Any way to temporarily bypass the email ...
Hey guys, any way to bypass the email verification to use the accounts again? i need to recover some projects that due to recent changes have been stopped, and ...
- How to use Sites on selfhosted appwrite
whenever I try to create a site even with template it says 404 nginx error