makeFieldsOptional
makeFieldsOptional(
schema,_fields):string
Defined in: packages/core/src/schema/migrate.ts:54
Returns a copy of the schema string with the given fields made optional.
Stub — currently returns schema unchanged; the rewrite is not yet
implemented.
Parameters
Section titled “Parameters”schema
Section titled “schema”string
The schema source string to rewrite.
_fields
Section titled “_fields”The fields that should be made optional. Currently unused; placeholder for the not-yet-implemented rewrite.
Returns
Section titled “Returns”string
The schema string, unchanged until this is implemented.