Skip to content

Commit bb6aa5f

Browse files
Fix outdated example in Understanding populate guide (#2798)
1 parent 285ee2d commit bb6aa5f

File tree

1 file changed

+48
-50
lines changed

1 file changed

+48
-50
lines changed

docusaurus/docs/cms/api/rest/guides/understanding-populate.md

Lines changed: 48 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -772,56 +772,54 @@ Notice that we now have the `restaurants` relation field included with the respo
772772
{
773773
"id": 1,
774774
"documentId": "iy5ifm3xj8q0t8vlq6l23h",
775-
"attributes": {
776-
"title": "Here's why you have to try basque cuisine, according to a basque chef",
777-
"slug": "here-s-why-you-have-to-try-basque-cuisine-according-to-a-basque-chef",
778-
"createdAt": "2021-11-09T13:33:19.948Z",
779-
"updatedAt": "2023-06-02T10:57:19.584Z",
780-
"publishedAt": "2022-09-22T09:30:00.208Z",
781-
"locale": "en",
782-
"ckeditor_content": "", // truncated content
783-
"category": {
784-
"data": {
785-
"id": 4,
786-
"name": "European",
787-
"slug": "european",
788-
"createdAt": "2021-11-09T13:33:20.123Z",
789-
"updatedAt": "2021-11-09T13:33:20.123Z",
790-
"restaurants": {
791-
"data": [
792-
{
793-
"id": 1,
794-
"documentId": "ozlqrdxpnjb7wtvf6lp74v",
795-
"name": "Mint Lounge",
796-
"slug": "mint-lounge",
797-
"price": "p3",
798-
"createdAt": "2021-11-09T14:07:47.125Z",
799-
"updatedAt": "2021-11-23T16:41:30.504Z",
800-
"publishedAt": "2021-11-23T16:41:30.501Z",
801-
"locale": "en"
802-
},
803-
{
804-
"id": 9,
805-
// truncated content
806-
},
807-
{
808-
"id": 10,
809-
// truncated content
810-
},
811-
{
812-
"id": 12,
813-
// truncated content
814-
},
815-
{
816-
"id": 21,
817-
// truncated content
818-
},
819-
{
820-
"id": 26,
821-
// truncated content
822-
}
823-
]
824-
}
775+
"title": "Here's why you have to try basque cuisine, according to a basque chef",
776+
"slug": "here-s-why-you-have-to-try-basque-cuisine-according-to-a-basque-chef",
777+
"createdAt": "2021-11-09T13:33:19.948Z",
778+
"updatedAt": "2023-06-02T10:57:19.584Z",
779+
"publishedAt": "2022-09-22T09:30:00.208Z",
780+
"locale": "en",
781+
"ckeditor_content": "", // truncated content
782+
"category": {
783+
"data": {
784+
"id": 4,
785+
"name": "European",
786+
"slug": "european",
787+
"createdAt": "2021-11-09T13:33:20.123Z",
788+
"updatedAt": "2021-11-09T13:33:20.123Z",
789+
"restaurants": {
790+
"data": [
791+
{
792+
"id": 1,
793+
"documentId": "ozlqrdxpnjb7wtvf6lp74v",
794+
"name": "Mint Lounge",
795+
"slug": "mint-lounge",
796+
"price": "p3",
797+
"createdAt": "2021-11-09T14:07:47.125Z",
798+
"updatedAt": "2021-11-23T16:41:30.504Z",
799+
"publishedAt": "2021-11-23T16:41:30.501Z",
800+
"locale": "en"
801+
},
802+
{
803+
"id": 9,
804+
// truncated content
805+
},
806+
{
807+
"id": 10,
808+
// truncated content
809+
},
810+
{
811+
"id": 12,
812+
// truncated content
813+
},
814+
{
815+
"id": 21,
816+
// truncated content
817+
},
818+
{
819+
"id": 26,
820+
// truncated content
821+
}
822+
]
825823
}
826824
}
827825
}

0 commit comments

Comments
 (0)