BloodThermicOriginal post
Rank 4: Virtual Machine
Plain text
"646587b51b84a01f2ba8", response.$id, "collectionId", "fulltext", ["collectionId"], ["ASC"] );```
works for localhost but when built into production it breaks and does not create attribute.Summary
Production code breaks because the attribute `collectionId` is not available. Works fine on localhost. Problem arises in production.
Solution: Change `"collectionId"` in the `databases.createIndex` method to the correct attribute name to fix the issue.