* update index.md removes Prerequisites from the Create An entity page * Update index.md now check i removed the spaces above create the entity * Update index.md
This commit is contained in:
1 parent
a37925d6ea
commit
2ae8fabf36
1 file changed
-14
@@ -2,20 +2,6 @@
|
|||||||
|
|
||||||
In this document, you’ll learn how you can create an [Entity](overview.md).
|
In this document, you’ll learn how you can create an [Entity](overview.md).
|
||||||
|
|
||||||
## Prerequisites
|
|
||||||
|
|
||||||
It’s recommended to create a `tsconfig.json` file in the root of your Medusa server with the following content:
|
|
||||||
|
|
||||||
```jsx
|
|
||||||
{
|
|
||||||
"compilerOptions": {
|
|
||||||
"experimentalDecorators": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
This will remove any errors that show up in your IDE related to experimental decorators.
|
|
||||||
|
|
||||||
## Create the Entity
|
## Create the Entity
|
||||||
|
|
||||||
To create an entity, create a TypeScript file in `src/models`. For example, here’s a `Post` entity defined in the file `src/models/post.ts`:
|
To create an entity, create a TypeScript file in `src/models`. For example, here’s a `Post` entity defined in the file `src/models/post.ts`:
|
||||||
|
|||||||
Reference in new issue
Block a user