Skip to content

addRemovedFieldsAsOptional

addRemovedFieldsAsOptional(schema, _removedFields): string

Defined in: packages/core/src/schema/migrate.ts:72

Returns a copy of the schema string with previously removed fields re-added as optional. Stub — currently returns schema unchanged; the rewrite is not yet implemented.

string

The schema source string to rewrite.

RemovedFieldInfo[]

The fields that were removed from the config and should be re-added as optional. Currently unused; placeholder for the not-yet-implemented rewrite.

string

The schema string, unchanged until this is implemented.