Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/components/FeatureFlags/feature-flags.json
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,26 @@
"defaultExistingProject": true
}
]
},
"generateModelsForLazyLoadAndCustomSelectionSet": {
"description": "Generate models for lazy loading and custom selection set",
"type": "Feature",
"valueType": "Boolean",
"versionAdded": "x.x.x",
"values": [
{
"value": "true",
"description": "[Recommended] Add support for lazy loading and custom selection set.",
"defaultNewProject": false,
"defaultExistingProject": false
},
{
"value": "false",
"description": "models will not support selection set customization and lazy loading.",
"defaultNewProject": false,
"defaultExistingProject": true
}
]
}
}
},
Expand Down
5 changes: 5 additions & 0 deletions src/directory/directory.js
Original file line number Diff line number Diff line change
Expand Up @@ -1947,6 +1947,11 @@ const directory = {
migration: {
title: 'Migration & Backwards Compatibility',
items: [
{
title: 'Lazy Loading and Custom Selection Set',
route: '/cli/migration/lazy-load-custom-selection-set',
filters: []
},
{
title: 'GraphQL Transformer v1 to v2 migration',
route: '/cli/migration/transformer-migration',
Expand Down
5 changes: 0 additions & 5 deletions src/pages/cli/graphql/data-modeling.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -316,11 +316,6 @@ mutation CreatePost {

### Belongs To relationship

<Callout>

Bi-directional "has one" relationships currently cannot be represented on iOS due to Swift language limitations.
</Callout>

Make a "has one" or "has many" relationship bi-directional with the `@belongsTo` directive.

<BlockSwitcher>
Expand Down
Loading