# codeGenerators

{% hint style="info" %}
#### Experimental Feature

This configuration entry is related to an Experimental (Optional) feature called Code Schemas. Before you start to configure this section, make sure to read the page specific for this feature (accessible [here](../../optional-features/schema-improvements/code-schemas)) and [this](../../concepts/experimental-features) page that explains how to enable Experimental Features.
{% endhint %}

### Type: Promise<[PrismaSchema](../types-and-objects/prisma-schema)>\[]

<details>

<summary>Versioning History</summary>

**API Version v1.3.0** - Introduced `codeGenerators` configuration option.

</details>

This array of Promises will be used to create models and enums when the schema is being generated. Each of these Promises will be awaited for a result, which is supposed to be a valid [PrismaSchema](../types-and-objects/prisma-schema). To configure the code generators properly, add the following line to your exported configuration object:

{% code title="prisma-util.config.mjs" %}
```javascript
export default {
    // Other configuration lines
    codeGenerators: [new Promise((resolve) => resolve("yourSchemaHere"))]
}
```
{% endcode %}
