You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/schema-design/federated-schemas/entities/interfaces.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Entity Interfaces
3
3
subtitle: Add entity fields polymorphically
4
4
description: Discover how to efficiently add polymorphic fields to GraphQL interfaces using Apollo Federation's Entity Interfaces and the @interfaceObject directive.
5
-
minVersion: 2.3
5
+
minVersion: Federation v2.3
6
6
---
7
7
8
8
Apollo Federation provides powerful extensions to GraphQL interfaces, specifically for use with your supergraph's [entities](/graphos/get-started/guides/federate-schemas#entity-overview):
Copy file name to clipboardExpand all lines: docs/source/schema-design/federated-schemas/entities/use-contexts.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Use contexts to share data
3
3
subtitle: Share data along type hierarchies without overloading @keys
4
4
description: Use the @context and @fromContext directives to enable a subgraph to share fields. These directives define contexts that enable data sharing along type hierarchies.
@@ -218,11 +212,9 @@ During composition, the fields of every `@interfaceObject` are added both to the
218
212
219
213
[Learn more about entity interfaces.](/graphos/schema-design/federated-schemas/entities/interfaces/)
220
214
221
-
<MinVersionversion="1.0">
222
-
223
215
### `@extends`
224
216
225
-
</MinVersion>
217
+
<MinVersionBadgeversion="Federation v1.0" />
226
218
227
219
```graphql
228
220
directive@extendsonOBJECT | INTERFACE
@@ -248,11 +240,9 @@ In Federation 1, every subgraph must extend the `Query` and `Mutation` types (if
248
240
249
241
## Managing shared fields
250
242
251
-
<MinVersion version="2.0">
252
-
253
243
### `@shareable`
254
244
255
-
</MinVersion>
245
+
<MinVersionBadge version="Federation v2.0" />
256
246
257
247
```graphql
258
248
directive @shareable repeatable on FIELD_DEFINITION | OBJECT
@@ -296,11 +286,9 @@ See also [Value types in Apollo Federation](/graphos/schema-design/federated-sch
296
286
297
287
The `@shareable` directiveisaboutindicatingwhenanobjectfieldcanberesolvedbymultiplesubgraphs. Asinterfacefieldsarenotdirectlyresolved (their implementation is), `@shareable` isnotmeaningfulonaninterfacefieldandisnotallowed (at least since federation 2.2; earlier versions of federation 2 mistakenly ignored `@shareable` on interface fields).
@@ -349,11 +337,9 @@ If a type is marked `@inaccessible`, all fields that return that type must also
349
337
350
338
For more information, see [Using `@inaccessible`](/graphos/schema-design/federated-schemas/sharing-types/#using-inaccessible).
351
339
352
-
<MinVersion version="2.0">
353
-
354
340
### `@override`
355
341
356
-
</MinVersion>
342
+
<MinVersionBadge version="Federation v2.0" />
357
343
358
344
```graphql
359
345
directive @override(from: String!) on FIELD_DEFINITION
@@ -389,11 +375,9 @@ Only one subgraph can `@override` any given field. If multiple subgraphs attempt
389
375
390
376
For more information, see [Migrating entity and root fields](/graphos/schema-design/federated-schemas/entities/migrate-fields).
391
377
392
-
<MinVersion version="2.7">
393
-
394
378
#### Progressive `@override`
395
379
396
-
</MinVersion>
380
+
<MinVersionBadge version="Federation v2.7" />
397
381
398
382
<ProgressiveOverrideEnterprise/>
399
383
@@ -459,11 +443,9 @@ This argument is available in Apollo Federation 2.7 and later. It is an [Enterpr
459
443
460
444
## Controlling access
461
445
462
-
<MinVersion version="2.5">
463
-
464
446
### `@authenticated`
465
447
466
-
</MinVersion>
448
+
<MinVersionBadge version="Federation v2.5" />
467
449
468
450
<EnterpriseDirective />
469
451
@@ -479,11 +461,9 @@ directive @authenticated on
479
461
480
462
Indicates to composition that the target element is accessible only to the authenticated supergraph users. For more granular access control, see the [`@requiresScopes`](#requiresScopes) directive below. Refer to the [router article](/graphos/routing/security/authorization#authenticated) for additional details.
481
463
482
-
<MinVersion version="2.5">
483
-
484
464
### `@requiresScopes`
485
465
486
-
</MinVersion>
466
+
<MinVersionBadge version="Federation v2.5" />
487
467
488
468
<EnterpriseDirective />
489
469
@@ -528,11 +508,9 @@ Indicates to composition that the target element is accessible only to the authe
528
508
</tbody>
529
509
</table>
530
510
531
-
<MinVersion version="2.6">
532
-
533
511
### `@policy`
534
512
535
-
</MinVersion>
513
+
<MinVersionBadge version="Federation v2.6" />
536
514
537
515
<EnterpriseDirective />
538
516
@@ -579,11 +557,9 @@ Indicates to composition that the target element is restricted based on authoriz
0 commit comments