Skip to content

Commit

Permalink
Update relations.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dmabuada committed Feb 24, 2020
1 parent 2706664 commit d70af1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/relations.md
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ Nested writes provide a powerful API to write relational data to your database.

Nested writes are available for relation fields of a model when using the model's `create` or `update` function. The following nested write operations are available per function:

- On to-one relation fields (e.g. `profile` on `User` in the sample data model above)
- One-to-one relation fields (e.g. `profile` on `User` in the sample data model above)
- `create`
- `create`: Create a new user and a new profile
- `connect`: Create a new user and connect it to an existing profile
Expand All @@ -386,7 +386,7 @@ Nested writes are available for relation fields of a model when using the model'
- `upsert`: Update an existing user by updating their existing profile or by creating a new profile
- `delete` (only if relation is optional): Update an existing user by deleting their existing profile
- `disconnect` (only if relation is optional): Update an existing user by removing the connection to their existing profile
- On to-many relation fields (e.g. `posts` on `User` in the sample data model above)
- One-to-many relation fields (e.g. `posts` on `User` in the sample data model above)
- `create`
- `create`: Create a new user and one or more new posts
- `connect`: Create a new user and connect it to one or more existing posts
Expand Down

0 comments on commit d70af1e

Please sign in to comment.