---
title: Créer une instance d'une entité
slug: oip-next/RBnW-creer-une-entite
icon: {"lucideIcon":"📘"}
createdAt: 2025-10-17T09:36:58.000Z
---

# Vue d’ensemble

Chaque entité expose deux fonctions équivalentes pour créer une nouvelle instance :

- `$[EntityName]`
- `create[EntityName]`

:::BlockQuote
**Info**
Ces fonctions permettent d’instancier une entité sans fournir de paramètres, ou en passant explicitement `null` ou `undefined`.
:::

# Entité racine

```javascript
// Create new instances of `Project` type
await $Project();
await $Project(null);
await $Project(undefined);
await createProject();
```

# Entité non racine

```javascript
// Create new instances of `Company` type,
// where `Company` is a direct child of `Project`
await $Company(parentEntity);
await $Company(parentEntity, null);
await $Company(parentEntity, undefined);
await createCompany(parentEntity);
```
