SchemaOptions

Properties
NameTypeDescription
afterMigrationfunction

Execute a callback after running schema migrations.

beforeMigrationfunction

Execute a callback before running schema migrations.

definitionsAny

Rest representation on Parse.Schema https://docs.parseplatform.org/rest/guide/#adding-a-schema

deleteExtraFieldsBoolean

Is true if Parse Server should delete any fields not defined in a schema definition. This should only be used during development.

keepUnknownIndexesBoolean

(Optional) Keep indexes that are present in the database but not defined in the schema. Set this to true if you are adding indexes manually, so that they won't be removed when running schema migration. Default is false.

lockSchemasBoolean

Is true if Parse Server will reject any attempts to modify the schema while the server is running.

recreateModifiedFieldsBoolean

Is true if Parse Server should recreate any fields that are different between the current database schema and theschema definition. This should only be used during development.

strictBoolean

Is true if Parse Server should exit if schema update fail.