Skip to content

Commit

Permalink
Formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib committed Aug 15, 2024
1 parent fcc8f8a commit eb1433c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions spec/Section 4 -- Composition.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ IsObjectTypeEmpty(type):

**Explanatory Text**

For object types defined across multiple source schemas, the merged object type is
the superset of all fields defined in these source schemas. However, any field marked
with `@inaccessible` in any source schema is hidden and not included in the merged object
type. An object type with no fields, after considering `@inaccessible` annotations, is
considered empty and invalid.
For object types defined across multiple source schemas, the merged object type
is the superset of all fields defined in these source schemas. However, any
field marked with `@inaccessible` in any source schema is hidden and not
included in the merged object type. An object type with no fields, after
considering `@inaccessible` annotations, is considered empty and invalid.

In the following example, the merged object type `ObjectType1` is valid. It
includes all fields from both source schemas, with `field2` being hidden due to the
`@inaccessible` directive in one of the source schemas:
includes all fields from both source schemas, with `field2` being hidden due to
the `@inaccessible` directive in one of the source schemas:

```graphql
type ObjectType1 {
Expand All @@ -65,8 +65,8 @@ type ObjectType1 {

This counter-example demonstrates an invalid merged object type. In this case,
`ObjectType1` is defined in two source schemas, but all fields are marked as
`@inaccessible` in at least one of the source schemas, resulting in an empty merged
object type:
`@inaccessible` in at least one of the source schemas, resulting in an empty
merged object type:

```graphql counter-example
type ObjectType1 {
Expand Down

0 comments on commit eb1433c

Please sign in to comment.