Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Can I edit a field in the schema and its properties?

Answer

It's not possible to edit the schema once records have been added to a collection.

So you have 2 options:

...

If your collection contains records and is not empty, you can:

  • change 'description' of a schema field

  • change 'mode' to a less restrictive value ('UNIQUE' -> 'REQUIRED' -> 'NULLABLE')

  • change a field to be ‘indexed’

All other properties of a schema field cannot be changed if your collection already contains records. There are possible workarounds:

  • Add a new field with a different name with the desired properties

  • Remove all the records from the collection, make the changes to the schema, and then add the records again.

Alternatively, you can also start again by creating a new collection.