Skip to content

Commit bfefade

Browse files
committed
Add again comments in examples (GraphQL API migration)
1 parent 98c3898 commit bfefade

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docusaurus/docs/cms/migration/v4-to-v5/breaking-changes/graphql-api-updated.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ To gradually convert to the new GraphQL API format, follow these steps:
175175

176176
```graphql
177177
{
178+
# collection fields can be renamed to _connection to get a v4 compat response
178179
restaurants_connection {
179180
data {
180181
id
@@ -188,6 +189,7 @@ To gradually convert to the new GraphQL API format, follow these steps:
188189
}
189190
}
190191
}
192+
# collection fields can be renamed to _connection to get a v4 compat response
191193
images_connection {
192194
data {
193195
id
@@ -204,6 +206,7 @@ To gradually convert to the new GraphQL API format, follow these steps:
204206
}
205207
}
206208
}
209+
# collection fields can be renamed to _connection to get a v4 compat response
207210
xToManyRelation_connection {
208211
data {
209212
id
@@ -228,6 +231,7 @@ To gradually convert to the new GraphQL API format, follow these steps:
228231

229232
```graphql
230233
{
234+
# collection fields can be renamed to _connection to get a v4 compat response
231235
restaurants_connection {
232236
data {
233237
id
@@ -238,6 +242,7 @@ To gradually convert to the new GraphQL API format, follow these steps:
238242
url
239243
}
240244
}
245+
# collection fields can be renamed to _connection to get a v4 compat response
241246
images_connection {
242247
data {
243248
id
@@ -250,6 +255,7 @@ To gradually convert to the new GraphQL API format, follow these steps:
250255
field
251256
}
252257
}
258+
# collection fields can be renamed to _connection to get a v4 compat response
253259
xToManyRelation_connection {
254260
data {
255261
id
@@ -271,6 +277,7 @@ To gradually convert to the new GraphQL API format, follow these steps:
271277

272278
```graphql
273279
{
280+
# Rename data to nodes & meta.pagination to pageInfo
274281
restaurants_connection {
275282
nodes {
276283
id
@@ -306,6 +313,7 @@ To gradually convert to the new GraphQL API format, follow these steps:
306313

307314
```graphql
308315
{
316+
# remove _connection & data if you don't need pagination att all
309317
restaurants {
310318
id
311319
title

0 commit comments

Comments
 (0)