deprecated

Experimental Feature

This configuration entry is related to an Experimental (Optional) feature called Deprecated Tag. Before you start to configure this section, make sure to read the page specific for this feature (accessible here) and this page that explains how to enable Experimental Features.

Type: Map<FileModelColumn, string>

Versioning History

API Version v2.0.0 - Introduced deprecated configuration option.

Mark fields as deprecated. The key of this value is the field that will be deprecated and the value of this value is the message that will be appended to @deprecated. To deprecate a field, add the following lines to your configuration file:

prisma-util.config.mjs
export default {
    // Other configuration lines
    deprecated: {
        "file:Model.column": "This field has been deprecated"
    }
};

Last updated