MatanOriginal post
Web Developer
When I use the appwrite CLI to create an appwrite.json with appwrite pull collections --all --force, I get indices that look like this:
{
"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": [].
Summary
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": []`.