Hi, we have a collection in production where we ha...
# community-help
d
Hi, we have a collection in production where we have to add a new field to the schema. I tried to update my schema following the Update or alter a collection doc. The operation is failing because of the following reason: `Field score has been declared in the schema, but is not found in the documents already present in the collection. If you still want to add this field, set it as `optional: true`` Is there a way to update the schema and set a default value for the existing fields as I don't want the field to be optional.
f
No, there's no default for fields in Typesense directly. You can migrate to a new collection schema altogether using the alias feature
1
d
Okay, thanks for the clarification
🙌 1