Skip to content

Commit cac2e18

Browse files
authored
feat(cli): migration guide for lazy loading and custom selection set feature flag (#4934)
* feat(cli): feature flag and migration guide iOS LazyReference ModelPath * migration guide * fix code snippets * fix code snippets * address PR comments * update CLI versions
1 parent 60c754c commit cac2e18

File tree

4 files changed

+382
-5
lines changed

4 files changed

+382
-5
lines changed

src/components/FeatureFlags/feature-flags.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,26 @@
659659
"defaultExistingProject": true
660660
}
661661
]
662+
},
663+
"generateModelsForLazyLoadAndCustomSelectionSet": {
664+
"description": "Generate models for lazy loading and custom selection set",
665+
"type": "Feature",
666+
"valueType": "Boolean",
667+
"versionAdded": "x.x.x",
668+
"values": [
669+
{
670+
"value": "true",
671+
"description": "[Recommended] Add support for lazy loading and custom selection set.",
672+
"defaultNewProject": false,
673+
"defaultExistingProject": false
674+
},
675+
{
676+
"value": "false",
677+
"description": "models will not support selection set customization and lazy loading.",
678+
"defaultNewProject": false,
679+
"defaultExistingProject": true
680+
}
681+
]
662682
}
663683
}
664684
},

src/directory/directory.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1947,6 +1947,11 @@ const directory = {
19471947
migration: {
19481948
title: 'Migration & Backwards Compatibility',
19491949
items: [
1950+
{
1951+
title: 'Lazy Loading and Custom Selection Set',
1952+
route: '/cli/migration/lazy-load-custom-selection-set',
1953+
filters: []
1954+
},
19501955
{
19511956
title: 'GraphQL Transformer v1 to v2 migration',
19521957
route: '/cli/migration/transformer-migration',

src/pages/cli/graphql/data-modeling.mdx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -316,11 +316,6 @@ mutation CreatePost {
316316

317317
### Belongs To relationship
318318

319-
<Callout>
320-
321-
Bi-directional "has one" relationships currently cannot be represented on iOS due to Swift language limitations.
322-
</Callout>
323-
324319
Make a "has one" or "has many" relationship bi-directional with the `@belongsTo` directive.
325320

326321
<BlockSwitcher>

0 commit comments

Comments
 (0)