I’m trying to define a users collection in FaunaDB with specific fields and a migration plan. However, I’m encountering the following error:
Error: “Missing wildcard definition”
It suggests that collections without explicitly defined fields allow arbitrary fields by default, and to maintain this behavior, I need to add a wildcard declaration (*: Any).
This is an existing collection that already contains around eight entries. The documents in this collection should contain only the defined fields (username, email, department, name, snakeGameScore) and no additional key-value pairs.
How can I resolve this issue while ensuring that my schema is correctly structured and enforces these field restrictions?