Skip to content

Commit

Permalink
Update examples of creating relations (#1949)
Browse files Browse the repository at this point in the history
* Update examples of creating relations

* Update docusaurus/docs/dev-docs/api/rest.md

* Update docusaurus/docs/dev-docs/api/rest.md

* Update docusaurus/docs/dev-docs/api/rest.md

* Update docusaurus/docs/dev-docs/api/rest.md

---------

Co-authored-by: Pierre Wizla <[email protected]>
  • Loading branch information
mathiasrw and pwizla authored Dec 12, 2023
1 parent 994c4cf commit 90ab2ac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docusaurus/docs/dev-docs/api/rest.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,8 @@ While creating an entry, you can define its relations and their order (see [Mana
{
"data": {
"title": "Hello",
"relation": 2,
"relations": [2, 4],
"relation_field_a": 2,
"relation_field_b": [2, 4],
"link": {
"id": 1,
"type": "abc"
Expand Down Expand Up @@ -301,8 +301,8 @@ Fields that aren't sent in the query are not changed in the database. Send a `nu
{
"data": {
"title": "Hello",
"relation": 2,
"relations": [2, 4],
"relation_field_a": 2,
"relation_field_b": [2, 4],
}
}
```
Expand Down

1 comment on commit 90ab2ac

@vercel
Copy link

@vercel vercel bot commented on 90ab2ac Dec 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

documentation – ./

docs-vercel-v4.strapi.io
documentation-strapijs.vercel.app
documentation-git-main-strapijs.vercel.app

Please sign in to comment.