diff --git a/test/src/test/resources/fixtures/errors/exceptions-in-hydration-call-that-fail-with-errors-are-reflected-in-the-result.yml b/test/src/test/resources/fixtures/errors/exceptions-in-hydration-call-that-fail-with-errors-are-reflected-in-the-result.yml index 9234b35bf..d08b64e28 100644 --- a/test/src/test/resources/fixtures/errors/exceptions-in-hydration-call-that-fail-with-errors-are-reflected-in-the-result.yml +++ b/test/src/test/resources/fixtures/errors/exceptions-in-hydration-call-that-fail-with-errors-are-reflected-in-the-result.yml @@ -9,7 +9,12 @@ overallSchema: } type Bar { name: String - nestedBar: Bar @hydrated(service: "Bar" field: "barById" arguments: [{name: "id" value: "$source.nestedBarId"}]) + nestedBar: Bar + @hydrated( + service: "Bar" + field: "barById" + arguments: [{name: "id" value: "$source.nestedBarId"}] + ) } Foo: | type Query { @@ -17,7 +22,12 @@ overallSchema: } type Foo { name: String - bar: Bar @hydrated(service: "Bar" field: "barById" arguments: [{name: "id" value: "$source.barId"}]) + bar: Bar + @hydrated( + service: "Bar" + field: "barById" + arguments: [{name: "id" value: "$source.barId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/extend type/extending-types-from-another-service-is-possible-with-synthetic-fields.yml b/test/src/test/resources/fixtures/extend type/extending-types-from-another-service-is-possible-with-synthetic-fields.yml index 31aea9fe5..7dc6c1f9e 100644 --- a/test/src/test/resources/fixtures/extend type/extending-types-from-another-service-is-possible-with-synthetic-fields.yml +++ b/test/src/test/resources/fixtures/extend type/extending-types-from-another-service-is-possible-with-synthetic-fields.yml @@ -10,7 +10,13 @@ overallSchema: lookup(id: ID): Extension } extend type Root { - extension: Extension @hydrated(service: "Service2" field: "lookUpQuery.lookup" arguments: [{name: "id" value: "$source.id"}] identifiedBy: "id") + extension: Extension + @hydrated( + service: "Service2" + field: "lookUpQuery.lookup" + arguments: [{name: "id" value: "$source.id"}] + identifiedBy: "id" + ) } type Extension { id: ID diff --git a/test/src/test/resources/fixtures/extend type/extending-types-from-another-service-is-possible.yml b/test/src/test/resources/fixtures/extend type/extending-types-from-another-service-is-possible.yml index 95d35d072..6886aa413 100644 --- a/test/src/test/resources/fixtures/extend type/extending-types-from-another-service-is-possible.yml +++ b/test/src/test/resources/fixtures/extend type/extending-types-from-another-service-is-possible.yml @@ -7,7 +7,13 @@ overallSchema: lookup(id: ID): Extension } extend type Root { - extension: Extension @hydrated(service: "Service2" field: "lookup" arguments: [{name: "id" value: "$source.id"}] identifiedBy: "id") + extension: Extension + @hydrated( + service: "Service2" + field: "lookup" + arguments: [{name: "id" value: "$source.id"}] + identifiedBy: "id" + ) } type Extension { id: ID diff --git a/test/src/test/resources/fixtures/extend type/extending-types-via-hydration-returning-a-connection.yml b/test/src/test/resources/fixtures/extend type/extending-types-via-hydration-returning-a-connection.yml index c813187c8..b77b93960 100644 --- a/test/src/test/resources/fixtures/extend type/extending-types-via-hydration-returning-a-connection.yml +++ b/test/src/test/resources/fixtures/extend type/extending-types-via-hydration-returning-a-connection.yml @@ -29,13 +29,23 @@ overallSchema: type Association { id: ID nameOfAssociation: String - page: Page @hydrated(service: "Association" field: "pages.page" arguments: [{name: "id" value: "$source.pageId"}]) + page: Page + @hydrated( + service: "Association" + field: "pages.page" + arguments: [{name: "id" value: "$source.pageId"}] + ) } type Page { id: ID } extend type Issue { - association(filter: Filter): AssociationConnection @hydrated(service: "Association" field: "association" arguments: [{name: "id" value: "$source.id"} {name: "filter" value: "$argument.filter"}]) + association(filter: Filter): AssociationConnection + @hydrated( + service: "Association" + field: "association" + arguments: [{name: "id" value: "$source.id"} {name: "filter" value: "$argument.filter"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/extend type/extending-types-via-hydration-with-arguments-passed-on.yml b/test/src/test/resources/fixtures/extend type/extending-types-via-hydration-with-arguments-passed-on.yml index 30558afef..8b5bc5563 100644 --- a/test/src/test/resources/fixtures/extend type/extending-types-via-hydration-with-arguments-passed-on.yml +++ b/test/src/test/resources/fixtures/extend type/extending-types-via-hydration-with-arguments-passed-on.yml @@ -21,7 +21,12 @@ overallSchema: nameOfAssociation: String } extend type Issue { - association(filter: Filter): Association @hydrated(service: "Association" field: "association" arguments: [{name: "id" value: "$source.id"} {name: "filter" value: "$argument.filter"}]) + association(filter: Filter): Association + @hydrated( + service: "Association" + field: "association" + arguments: [{name: "id" value: "$source.id"} {name: "filter" value: "$argument.filter"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/extend type/extending-types-via-hydration-with-variables-arguments.yml b/test/src/test/resources/fixtures/extend type/extending-types-via-hydration-with-variables-arguments.yml index 3b5eb8863..a10de1c5e 100644 --- a/test/src/test/resources/fixtures/extend type/extending-types-via-hydration-with-variables-arguments.yml +++ b/test/src/test/resources/fixtures/extend type/extending-types-via-hydration-with-variables-arguments.yml @@ -21,7 +21,12 @@ overallSchema: nameOfAssociation: String } extend type Issue { - association(filter: Filter): RenamedAssociation @hydrated(service: "Association" field: "association" arguments: [{name: "id" value: "$source.id"} {name: "filter" value: "$argument.filter"}]) + association(filter: Filter): RenamedAssociation + @hydrated( + service: "Association" + field: "association" + arguments: [{name: "id" value: "$source.id"} {name: "filter" value: "$argument.filter"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/field removed/all-fields-are-removed-from-hydrated-field.yml b/test/src/test/resources/fixtures/field removed/all-fields-are-removed-from-hydrated-field.yml index 51f3ec8c8..da2fa1900 100644 --- a/test/src/test/resources/fixtures/field removed/all-fields-are-removed-from-hydrated-field.yml +++ b/test/src/test/resources/fixtures/field removed/all-fields-are-removed-from-hydrated-field.yml @@ -21,7 +21,12 @@ overallSchema: id: ID commentText: String @renamed(from: "text") created: String - author: User @hydrated(service: "UserService" field: "userById" arguments: [{name: "id" value: "$source.authorId"}]) + author: User + @hydrated( + service: "UserService" + field: "userById" + arguments: [{name: "id" value: "$source.authorId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/field removed/all-fields-in-a-selection-set-are-removed.yml b/test/src/test/resources/fixtures/field removed/all-fields-in-a-selection-set-are-removed.yml index 5ce8cd26a..8a1379c99 100644 --- a/test/src/test/resources/fixtures/field removed/all-fields-in-a-selection-set-are-removed.yml +++ b/test/src/test/resources/fixtures/field removed/all-fields-in-a-selection-set-are-removed.yml @@ -13,8 +13,18 @@ overallSchema: summary: String description: String epic: Epic - reporter: User @hydrated(service: "UserService" field: "userById" arguments: [{name: "id" value: "$source.reporterId"}]) - comments: [Comment] @hydrated(service: "CommentService" field: "commentById" arguments: [{name: "id" value: "$source.commentIds"}]) + reporter: User + @hydrated( + service: "UserService" + field: "userById" + arguments: [{name: "id" value: "$source.reporterId"}] + ) + comments: [Comment] + @hydrated( + service: "CommentService" + field: "commentById" + arguments: [{name: "id" value: "$source.commentIds"}] + ) } type Epic { id: ID @@ -40,7 +50,12 @@ overallSchema: id: ID commentText: String @renamed(from: "text") created: String - author: User @hydrated(service: "UserService" field: "userById" arguments: [{name: "id" value: "$source.authorId"}]) + author: User + @hydrated( + service: "UserService" + field: "userById" + arguments: [{name: "id" value: "$source.authorId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/field removed/all-non-hydrated-fields-in-query-are-removed.yml b/test/src/test/resources/fixtures/field removed/all-non-hydrated-fields-in-query-are-removed.yml index 3ab7c68a2..92a866f5c 100644 --- a/test/src/test/resources/fixtures/field removed/all-non-hydrated-fields-in-query-are-removed.yml +++ b/test/src/test/resources/fixtures/field removed/all-non-hydrated-fields-in-query-are-removed.yml @@ -13,8 +13,18 @@ overallSchema: summary: String description: String epic: Epic - reporter: User @hydrated(service: "UserService" field: "userById" arguments: [{name: "id" value: "$source.reporterId"}]) - comments: [Comment] @hydrated(service: "CommentService" field: "commentById" arguments: [{name: "id" value: "$source.commentIds"}]) + reporter: User + @hydrated( + service: "UserService" + field: "userById" + arguments: [{name: "id" value: "$source.reporterId"}] + ) + comments: [Comment] + @hydrated( + service: "CommentService" + field: "commentById" + arguments: [{name: "id" value: "$source.commentIds"}] + ) } type Epic { id: ID @@ -40,7 +50,12 @@ overallSchema: id: ID commentText: String @renamed(from: "text") created: String - author: User @hydrated(service: "UserService" field: "userById" arguments: [{name: "id" value: "$source.authorId"}]) + author: User + @hydrated( + service: "UserService" + field: "userById" + arguments: [{name: "id" value: "$source.authorId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/field removed/field-in-a-selection-set-is-removed.yml b/test/src/test/resources/fixtures/field removed/field-in-a-selection-set-is-removed.yml index 47ebc8e99..637df2227 100644 --- a/test/src/test/resources/fixtures/field removed/field-in-a-selection-set-is-removed.yml +++ b/test/src/test/resources/fixtures/field removed/field-in-a-selection-set-is-removed.yml @@ -13,8 +13,18 @@ overallSchema: summary: String description: String epic: Epic - reporter: User @hydrated(service: "UserService" field: "userById" arguments: [{name: "id" value: "$source.reporterId"}]) - comments: [Comment] @hydrated(service: "CommentService" field: "commentById" arguments: [{name: "id" value: "$source.commentIds"}]) + reporter: User + @hydrated( + service: "UserService" + field: "userById" + arguments: [{name: "id" value: "$source.reporterId"}] + ) + comments: [Comment] + @hydrated( + service: "CommentService" + field: "commentById" + arguments: [{name: "id" value: "$source.commentIds"}] + ) } type Epic { id: ID @@ -40,7 +50,12 @@ overallSchema: id: ID commentText: String @renamed(from: "text") created: String - author: User @hydrated(service: "UserService" field: "userById" arguments: [{name: "id" value: "$source.authorId"}]) + author: User + @hydrated( + service: "UserService" + field: "userById" + arguments: [{name: "id" value: "$source.authorId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/field removed/field-is-removed-from-hydrated-field.yml b/test/src/test/resources/fixtures/field removed/field-is-removed-from-hydrated-field.yml index 19db640ae..2069ccf53 100644 --- a/test/src/test/resources/fixtures/field removed/field-is-removed-from-hydrated-field.yml +++ b/test/src/test/resources/fixtures/field removed/field-is-removed-from-hydrated-field.yml @@ -21,7 +21,12 @@ overallSchema: id: ID commentText: String @renamed(from: "text") created: String - author: User @hydrated(service: "UserService" field: "userById" arguments: [{name: "id" value: "$source.authorId"}]) + author: User + @hydrated( + service: "UserService" + field: "userById" + arguments: [{name: "id" value: "$source.authorId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/field removed/field-is-removed-from-nested-hydrated-field.yml b/test/src/test/resources/fixtures/field removed/field-is-removed-from-nested-hydrated-field.yml index 0cd12aa5b..f7f02ba74 100644 --- a/test/src/test/resources/fixtures/field removed/field-is-removed-from-nested-hydrated-field.yml +++ b/test/src/test/resources/fixtures/field removed/field-is-removed-from-nested-hydrated-field.yml @@ -13,8 +13,18 @@ overallSchema: summary: String description: String epic: Epic - reporter: User @hydrated(service: "UserService" field: "userById" arguments: [{name: "id" value: "$source.reporterId"}]) - comments: [Comment] @hydrated(service: "CommentService" field: "commentById" arguments: [{name: "id" value: "$source.commentIds"}]) + reporter: User + @hydrated( + service: "UserService" + field: "userById" + arguments: [{name: "id" value: "$source.reporterId"}] + ) + comments: [Comment] + @hydrated( + service: "CommentService" + field: "commentById" + arguments: [{name: "id" value: "$source.commentIds"}] + ) } type Epic { id: ID @@ -40,7 +50,12 @@ overallSchema: id: ID commentText: String @renamed(from: "text") created: String - author: User @hydrated(service: "UserService" field: "userById" arguments: [{name: "id" value: "$source.authorId"}]) + author: User + @hydrated( + service: "UserService" + field: "userById" + arguments: [{name: "id" value: "$source.authorId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/field removed/field-with-selections-is-removed.yml b/test/src/test/resources/fixtures/field removed/field-with-selections-is-removed.yml index 0cb75761a..173318f46 100644 --- a/test/src/test/resources/fixtures/field removed/field-with-selections-is-removed.yml +++ b/test/src/test/resources/fixtures/field removed/field-with-selections-is-removed.yml @@ -13,8 +13,18 @@ overallSchema: summary: String description: String epic: Epic - reporter: User @hydrated(service: "UserService" field: "userById" arguments: [{name: "id" value: "$source.reporterId"}]) - comments: [Comment] @hydrated(service: "CommentService" field: "commentById" arguments: [{name: "id" value: "$source.commentIds"}]) + reporter: User + @hydrated( + service: "UserService" + field: "userById" + arguments: [{name: "id" value: "$source.reporterId"}] + ) + comments: [Comment] + @hydrated( + service: "CommentService" + field: "commentById" + arguments: [{name: "id" value: "$source.commentIds"}] + ) } type Epic { id: ID @@ -40,7 +50,12 @@ overallSchema: id: ID commentText: String @renamed(from: "text") created: String - author: User @hydrated(service: "UserService" field: "userById" arguments: [{name: "id" value: "$source.authorId"}]) + author: User + @hydrated( + service: "UserService" + field: "userById" + arguments: [{name: "id" value: "$source.authorId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/field removed/hydrated-field-is-removed.yml b/test/src/test/resources/fixtures/field removed/hydrated-field-is-removed.yml index 6a71f19cf..5d634eb8b 100644 --- a/test/src/test/resources/fixtures/field removed/hydrated-field-is-removed.yml +++ b/test/src/test/resources/fixtures/field removed/hydrated-field-is-removed.yml @@ -21,7 +21,12 @@ overallSchema: id: ID commentText: String @renamed(from: "text") created: String - author: User @hydrated(service: "UserService" field: "userById" arguments: [{name: "id" value: "$source.authorId"}]) + author: User + @hydrated( + service: "UserService" + field: "userById" + arguments: [{name: "id" value: "$source.authorId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/field removed/nested-hydrated-field-is-removed.yml b/test/src/test/resources/fixtures/field removed/nested-hydrated-field-is-removed.yml index 649ab3585..e3cad7247 100644 --- a/test/src/test/resources/fixtures/field removed/nested-hydrated-field-is-removed.yml +++ b/test/src/test/resources/fixtures/field removed/nested-hydrated-field-is-removed.yml @@ -13,8 +13,18 @@ overallSchema: summary: String description: String epic: Epic - reporter: User @hydrated(service: "UserService" field: "userById" arguments: [{name: "id" value: "$source.reporterId"}]) - comments: [Comment] @hydrated(service: "CommentService" field: "commentById" arguments: [{name: "id" value: "$source.commentIds"}]) + reporter: User + @hydrated( + service: "UserService" + field: "userById" + arguments: [{name: "id" value: "$source.reporterId"}] + ) + comments: [Comment] + @hydrated( + service: "CommentService" + field: "commentById" + arguments: [{name: "id" value: "$source.commentIds"}] + ) } type Epic { id: ID @@ -40,7 +50,12 @@ overallSchema: id: ID commentText: String @renamed(from: "text") created: String - author: User @hydrated(service: "UserService" field: "userById" arguments: [{name: "id" value: "$source.authorId"}]) + author: User + @hydrated( + service: "UserService" + field: "userById" + arguments: [{name: "id" value: "$source.authorId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/field removed/one-of-top-level-fields-is-removed.yml b/test/src/test/resources/fixtures/field removed/one-of-top-level-fields-is-removed.yml index 7e111fb30..8b5cef7c6 100644 --- a/test/src/test/resources/fixtures/field removed/one-of-top-level-fields-is-removed.yml +++ b/test/src/test/resources/fixtures/field removed/one-of-top-level-fields-is-removed.yml @@ -13,8 +13,18 @@ overallSchema: summary: String description: String epic: Epic - reporter: User @hydrated(service: "UserService" field: "userById" arguments: [{name: "id" value: "$source.reporterId"}]) - comments: [Comment] @hydrated(service: "CommentService" field: "commentById" arguments: [{name: "id" value: "$source.commentIds"}]) + reporter: User + @hydrated( + service: "UserService" + field: "userById" + arguments: [{name: "id" value: "$source.reporterId"}] + ) + comments: [Comment] + @hydrated( + service: "CommentService" + field: "commentById" + arguments: [{name: "id" value: "$source.commentIds"}] + ) } type Epic { id: ID @@ -40,7 +50,12 @@ overallSchema: id: ID commentText: String @renamed(from: "text") created: String - author: User @hydrated(service: "UserService" field: "userById" arguments: [{name: "id" value: "$source.authorId"}]) + author: User + @hydrated( + service: "UserService" + field: "userById" + arguments: [{name: "id" value: "$source.authorId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/field removed/restricted-field-inside-hydration-via-fragments-used-twice.yml b/test/src/test/resources/fixtures/field removed/restricted-field-inside-hydration-via-fragments-used-twice.yml index 68f1b6996..59008cae3 100644 --- a/test/src/test/resources/fixtures/field removed/restricted-field-inside-hydration-via-fragments-used-twice.yml +++ b/test/src/test/resources/fixtures/field removed/restricted-field-inside-hydration-via-fragments-used-twice.yml @@ -17,7 +17,13 @@ overallSchema: type Issue { id: ID relatedIssue: Issue - author: User @hydrated(service: "UserService" field: "usersById" arguments: [{name: "id" value: "$source.authorId"}] identifiedBy: "id") + author: User + @hydrated( + service: "UserService" + field: "usersById" + arguments: [{name: "id" value: "$source.authorId"}] + identifiedBy: "id" + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/field removed/restricted-single-field-inside-hydration-via-fragments-used-twice.yml b/test/src/test/resources/fixtures/field removed/restricted-single-field-inside-hydration-via-fragments-used-twice.yml index b4a821c03..352aeddee 100644 --- a/test/src/test/resources/fixtures/field removed/restricted-single-field-inside-hydration-via-fragments-used-twice.yml +++ b/test/src/test/resources/fixtures/field removed/restricted-single-field-inside-hydration-via-fragments-used-twice.yml @@ -17,7 +17,13 @@ overallSchema: type Issue { id: ID relatedIssue: Issue - author: User @hydrated(service: "UserService" field: "usersById" arguments: [{name: "id" value: "$source.authorId"}] identifiedBy: "id") + author: User + @hydrated( + service: "UserService" + field: "usersById" + arguments: [{name: "id" value: "$source.authorId"}] + identifiedBy: "id" + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/field removed/top-level-field-in-batched-query-is-removed.yml b/test/src/test/resources/fixtures/field removed/top-level-field-in-batched-query-is-removed.yml index fcd790ecd..677ffd4d1 100644 --- a/test/src/test/resources/fixtures/field removed/top-level-field-in-batched-query-is-removed.yml +++ b/test/src/test/resources/fixtures/field removed/top-level-field-in-batched-query-is-removed.yml @@ -13,8 +13,18 @@ overallSchema: summary: String description: String epic: Epic - reporter: User @hydrated(service: "UserService" field: "userById" arguments: [{name: "id" value: "$source.reporterId"}]) - comments: [Comment] @hydrated(service: "CommentService" field: "commentById" arguments: [{name: "id" value: "$source.commentIds"}]) + reporter: User + @hydrated( + service: "UserService" + field: "userById" + arguments: [{name: "id" value: "$source.reporterId"}] + ) + comments: [Comment] + @hydrated( + service: "CommentService" + field: "commentById" + arguments: [{name: "id" value: "$source.commentIds"}] + ) } type Epic { id: ID @@ -40,7 +50,12 @@ overallSchema: id: ID commentText: String @renamed(from: "text") created: String - author: User @hydrated(service: "UserService" field: "userById" arguments: [{name: "id" value: "$source.authorId"}]) + author: User + @hydrated( + service: "UserService" + field: "userById" + arguments: [{name: "id" value: "$source.authorId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/field removed/top-level-field-is-removed.yml b/test/src/test/resources/fixtures/field removed/top-level-field-is-removed.yml index 000076b31..d3947ae7e 100644 --- a/test/src/test/resources/fixtures/field removed/top-level-field-is-removed.yml +++ b/test/src/test/resources/fixtures/field removed/top-level-field-is-removed.yml @@ -13,8 +13,18 @@ overallSchema: summary: String description: String epic: Epic - reporter: User @hydrated(service: "UserService" field: "userById" arguments: [{name: "id" value: "$source.reporterId"}]) - comments: [Comment] @hydrated(service: "CommentService" field: "commentById" arguments: [{name: "id" value: "$source.commentIds"}]) + reporter: User + @hydrated( + service: "UserService" + field: "userById" + arguments: [{name: "id" value: "$source.reporterId"}] + ) + comments: [Comment] + @hydrated( + service: "CommentService" + field: "commentById" + arguments: [{name: "id" value: "$source.commentIds"}] + ) } type Epic { id: ID @@ -40,7 +50,12 @@ overallSchema: id: ID commentText: String @renamed(from: "text") created: String - author: User @hydrated(service: "UserService" field: "userById" arguments: [{name: "id" value: "$source.authorId"}]) + author: User + @hydrated( + service: "UserService" + field: "userById" + arguments: [{name: "id" value: "$source.authorId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/able-to-ask-for-field-and-use-same-field-as-hydration-source.yml b/test/src/test/resources/fixtures/hydration/able-to-ask-for-field-and-use-same-field-as-hydration-source.yml index 1396910d4..0b2957da9 100644 --- a/test/src/test/resources/fixtures/hydration/able-to-ask-for-field-and-use-same-field-as-hydration-source.yml +++ b/test/src/test/resources/fixtures/hydration/able-to-ask-for-field-and-use-same-field-as-hydration-source.yml @@ -10,7 +10,12 @@ overallSchema: type Bar { barId: ID name: String - nestedBar: Bar @hydrated(service: "Bar" field: "barById" arguments: [{name: "id" value: "$source.barId"}]) + nestedBar: Bar + @hydrated( + service: "Bar" + field: "barById" + arguments: [{name: "id" value: "$source.barId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/all-hydration-fields-are-seen-by-transformer.yml b/test/src/test/resources/fixtures/hydration/all-hydration-fields-are-seen-by-transformer.yml index 7255bf13a..b5f563402 100644 --- a/test/src/test/resources/fixtures/hydration/all-hydration-fields-are-seen-by-transformer.yml +++ b/test/src/test/resources/fixtures/hydration/all-hydration-fields-are-seen-by-transformer.yml @@ -19,7 +19,12 @@ overallSchema: } type Foo { id: ID - bar: Bar @hydrated(service: "service2" field: "bars.barById" arguments: [{name: "id" value: "$source.barId"}]) + bar: Bar + @hydrated( + service: "service2" + field: "bars.barById" + arguments: [{name: "id" value: "$source.barId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/basic-hydration-with-actor-field-rename.yml b/test/src/test/resources/fixtures/hydration/basic-hydration-with-actor-field-rename.yml index 292143c27..adabbf48e 100644 --- a/test/src/test/resources/fixtures/hydration/basic-hydration-with-actor-field-rename.yml +++ b/test/src/test/resources/fixtures/hydration/basic-hydration-with-actor-field-rename.yml @@ -16,8 +16,18 @@ overallSchema: } type Foo { id: ID - bar: Bar @hydrated(service: "service2" field: "barByIdOverall" arguments: [{name: "id" value: "$source.barId"}]) - barLongerInput: Bar @hydrated(service: "service2" field: "barByIdOverall" arguments: [{name: "id" value: "$source.fooDetails.externalBarId"}]) + bar: Bar + @hydrated( + service: "service2" + field: "barByIdOverall" + arguments: [{name: "id" value: "$source.barId"}] + ) + barLongerInput: Bar + @hydrated( + service: "service2" + field: "barByIdOverall" + arguments: [{name: "id" value: "$source.fooDetails.externalBarId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/basic-hydration-with-static-arg-array.yml b/test/src/test/resources/fixtures/hydration/basic-hydration-with-static-arg-array.yml index b0d17eabf..7f42612dd 100644 --- a/test/src/test/resources/fixtures/hydration/basic-hydration-with-static-arg-array.yml +++ b/test/src/test/resources/fixtures/hydration/basic-hydration-with-static-arg-array.yml @@ -105,4 +105,4 @@ response: |- } }, "extensions": {} - } \ No newline at end of file + } diff --git a/test/src/test/resources/fixtures/hydration/basic-hydration-with-static-arg-boolean.yml b/test/src/test/resources/fixtures/hydration/basic-hydration-with-static-arg-boolean.yml index f94b10407..e1b6c7310 100644 --- a/test/src/test/resources/fixtures/hydration/basic-hydration-with-static-arg-boolean.yml +++ b/test/src/test/resources/fixtures/hydration/basic-hydration-with-static-arg-boolean.yml @@ -17,7 +17,12 @@ overallSchema: } type Foo { id: ID - bar: Bar @hydrated(service: "service2" field: "barWithSomeAttribute" arguments: [{name: "someAttribute" value: true}]) + bar: Bar + @hydrated( + service: "service2" + field: "barWithSomeAttribute" + arguments: [{name: "someAttribute" value: true}] + ) } # language=GraphQL underlyingSchema: @@ -102,4 +107,4 @@ response: |- } }, "extensions": {} - } \ No newline at end of file + } diff --git a/test/src/test/resources/fixtures/hydration/basic-hydration-with-static-arg-float.yml b/test/src/test/resources/fixtures/hydration/basic-hydration-with-static-arg-float.yml index 144ce8f58..5d97ccc08 100644 --- a/test/src/test/resources/fixtures/hydration/basic-hydration-with-static-arg-float.yml +++ b/test/src/test/resources/fixtures/hydration/basic-hydration-with-static-arg-float.yml @@ -17,7 +17,12 @@ overallSchema: } type Foo { id: ID - bar: Bar @hydrated(service: "service2" field: "barWithSomeFloat" arguments: [{name: "someFloat" value: 123.45}]) + bar: Bar + @hydrated( + service: "service2" + field: "barWithSomeFloat" + arguments: [{name: "someFloat" value: 123.45}] + ) } # language=GraphQL underlyingSchema: @@ -102,4 +107,4 @@ response: |- } }, "extensions": {} - } \ No newline at end of file + } diff --git a/test/src/test/resources/fixtures/hydration/basic-hydration-with-static-arg-integer.yml b/test/src/test/resources/fixtures/hydration/basic-hydration-with-static-arg-integer.yml index 671d65b21..3a29b29de 100644 --- a/test/src/test/resources/fixtures/hydration/basic-hydration-with-static-arg-integer.yml +++ b/test/src/test/resources/fixtures/hydration/basic-hydration-with-static-arg-integer.yml @@ -16,7 +16,12 @@ overallSchema: } type Foo { id: ID - bar: Bar @hydrated(service: "service2" field: "barById" arguments: [{name: "id" value: 12345}]) + bar: Bar + @hydrated( + service: "service2" + field: "barById" + arguments: [{name: "id" value: 12345}] + ) } # language=GraphQL underlyingSchema: @@ -100,4 +105,4 @@ response: |- } }, "extensions": {} - } \ No newline at end of file + } diff --git a/test/src/test/resources/fixtures/hydration/basic-hydration-with-static-arg-object-array.yml b/test/src/test/resources/fixtures/hydration/basic-hydration-with-static-arg-object-array.yml index 2cf7d9125..aa05cb462 100644 --- a/test/src/test/resources/fixtures/hydration/basic-hydration-with-static-arg-object-array.yml +++ b/test/src/test/resources/fixtures/hydration/basic-hydration-with-static-arg-object-array.yml @@ -142,4 +142,4 @@ response: |- } }, "extensions": {} - } \ No newline at end of file + } diff --git a/test/src/test/resources/fixtures/hydration/basic-hydration-with-static-arg-object.yml b/test/src/test/resources/fixtures/hydration/basic-hydration-with-static-arg-object.yml index fff8b3bcc..3a5450f07 100644 --- a/test/src/test/resources/fixtures/hydration/basic-hydration-with-static-arg-object.yml +++ b/test/src/test/resources/fixtures/hydration/basic-hydration-with-static-arg-object.yml @@ -122,4 +122,4 @@ response: |- } }, "extensions": {} - } \ No newline at end of file + } diff --git a/test/src/test/resources/fixtures/hydration/basic-hydration-with-static-args.yml b/test/src/test/resources/fixtures/hydration/basic-hydration-with-static-args.yml index a8c9ed47a..71f8874ff 100644 --- a/test/src/test/resources/fixtures/hydration/basic-hydration-with-static-args.yml +++ b/test/src/test/resources/fixtures/hydration/basic-hydration-with-static-args.yml @@ -16,7 +16,12 @@ overallSchema: } type Foo { id: ID - bar: Bar @hydrated(service: "service2" field: "barById" arguments: [{name: "id" value: "barId"}]) + bar: Bar + @hydrated( + service: "service2" + field: "barById" + arguments: [{name: "id" value: "barId"}] + ) } # language=GraphQL underlyingSchema: @@ -100,4 +105,4 @@ response: |- } }, "extensions": {} - } \ No newline at end of file + } diff --git a/test/src/test/resources/fixtures/hydration/basic-hydration.yml b/test/src/test/resources/fixtures/hydration/basic-hydration.yml index 4f97b8a44..b0fccdbea 100644 --- a/test/src/test/resources/fixtures/hydration/basic-hydration.yml +++ b/test/src/test/resources/fixtures/hydration/basic-hydration.yml @@ -16,8 +16,18 @@ overallSchema: } type Foo { id: ID - bar: Bar @hydrated(service: "service2" field: "barById" arguments: [{name: "id" value: "$source.barId"}]) - barLongerInput: Bar @hydrated(service: "service2" field: "barById" arguments: [{name: "id" value: "$source.fooDetails.externalBarId"}]) + bar: Bar + @hydrated( + service: "service2" + field: "barById" + arguments: [{name: "id" value: "$source.barId"}] + ) + barLongerInput: Bar + @hydrated( + service: "service2" + field: "barById" + arguments: [{name: "id" value: "$source.fooDetails.externalBarId"}] + ) } # language=GraphQL underlyingSchema: @@ -108,4 +118,4 @@ response: |- } }, "extensions": {} - } \ No newline at end of file + } diff --git a/test/src/test/resources/fixtures/hydration/batch-hydration-input-is-null.yml b/test/src/test/resources/fixtures/hydration/batch-hydration-input-is-null.yml index 16e49679d..576404735 100644 --- a/test/src/test/resources/fixtures/hydration/batch-hydration-input-is-null.yml +++ b/test/src/test/resources/fixtures/hydration/batch-hydration-input-is-null.yml @@ -16,7 +16,14 @@ overallSchema: } type Issue { id: ID - authors: [User] @hydrated(service: "UserService" field: "usersByIds" arguments: [{name: "ids" value: "$source.authorIds"}] identifiedBy: "id" batchSize: 2) + authors: [User] + @hydrated( + service: "UserService" + field: "usersByIds" + arguments: [{name: "ids" value: "$source.authorIds"}] + identifiedBy: "id" + batchSize: 2 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/batch-hydration-with-renamed-actor-field.yml b/test/src/test/resources/fixtures/hydration/batch-hydration-with-renamed-actor-field.yml index 6d2596a65..668db8597 100644 --- a/test/src/test/resources/fixtures/hydration/batch-hydration-with-renamed-actor-field.yml +++ b/test/src/test/resources/fixtures/hydration/batch-hydration-with-renamed-actor-field.yml @@ -16,7 +16,13 @@ overallSchema: } type Foo { id: ID - bar: [Bar] @hydrated(service: "service2" field: "barsByIdOverall" arguments: [{name: "id" value: "$source.barId"}] identifiedBy: "id") + bar: [Bar] + @hydrated( + service: "service2" + field: "barsByIdOverall" + arguments: [{name: "id" value: "$source.barId"}] + identifiedBy: "id" + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/batched-hydration-query-with-a-synthetic-field.yml b/test/src/test/resources/fixtures/hydration/batched-hydration-query-with-a-synthetic-field.yml index 643a009ae..7dc07684e 100644 --- a/test/src/test/resources/fixtures/hydration/batched-hydration-query-with-a-synthetic-field.yml +++ b/test/src/test/resources/fixtures/hydration/batched-hydration-query-with-a-synthetic-field.yml @@ -20,7 +20,14 @@ overallSchema: } type Issue { id: ID - authors: [User] @hydrated(service: "service2" field: "users.usersByIds" arguments: [{name: "id" value: "$source.authorIds"}] identifiedBy: "id" batchSize: 3) + authors: [User] + @hydrated( + service: "service2" + field: "users.usersByIds" + arguments: [{name: "id" value: "$source.authorIds"}] + identifiedBy: "id" + batchSize: 3 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/batching-of-hydration-list-with-flattened-arguments.yml b/test/src/test/resources/fixtures/hydration/batching-of-hydration-list-with-flattened-arguments.yml index 58e3e5358..4307c3386 100644 --- a/test/src/test/resources/fixtures/hydration/batching-of-hydration-list-with-flattened-arguments.yml +++ b/test/src/test/resources/fixtures/hydration/batching-of-hydration-list-with-flattened-arguments.yml @@ -15,7 +15,14 @@ overallSchema: } type Issue { id: ID - authors: [User] @hydrated(service: "UserService" field: "usersByIds" arguments: [{name: "id" value: "$source.authors.authorId"}] identifiedBy: "id" batchSize: 3) + authors: [User] + @hydrated( + service: "UserService" + field: "usersByIds" + arguments: [{name: "id" value: "$source.authors.authorId"}] + identifiedBy: "id" + batchSize: 3 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/batching-of-hydration-list-with-partition.yml b/test/src/test/resources/fixtures/hydration/batching-of-hydration-list-with-partition.yml index f02dc029f..c1209eea1 100644 --- a/test/src/test/resources/fixtures/hydration/batching-of-hydration-list-with-partition.yml +++ b/test/src/test/resources/fixtures/hydration/batching-of-hydration-list-with-partition.yml @@ -15,7 +15,14 @@ overallSchema: } type Issue { id: ID - authors: [User] @hydrated(service: "UserService" field: "usersByIds" arguments: [{name: "id" value: "$source.authorIds"}] identifiedBy: "id" batchSize: 2) + authors: [User] + @hydrated( + service: "UserService" + field: "usersByIds" + arguments: [{name: "id" value: "$source.authorIds"}] + identifiedBy: "id" + batchSize: 2 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/batching-of-hydration-list.yml b/test/src/test/resources/fixtures/hydration/batching-of-hydration-list.yml index 71faea181..a78f49572 100644 --- a/test/src/test/resources/fixtures/hydration/batching-of-hydration-list.yml +++ b/test/src/test/resources/fixtures/hydration/batching-of-hydration-list.yml @@ -15,7 +15,14 @@ overallSchema: } type Issue { id: ID - authors: [User] @hydrated(service: "UserService" field: "usersByIds" arguments: [{name: "id" value: "$source.authorIds"}] identifiedBy: "id" batchSize: 3) + authors: [User] + @hydrated( + service: "UserService" + field: "usersByIds" + arguments: [{name: "id" value: "$source.authorIds"}] + identifiedBy: "id" + batchSize: 3 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/can-generate-legacy-operation-name-on-batch-hydration-for-specific-service.yml b/test/src/test/resources/fixtures/hydration/can-generate-legacy-operation-name-on-batch-hydration-for-specific-service.yml index 798afd6b7..46156c143 100644 --- a/test/src/test/resources/fixtures/hydration/can-generate-legacy-operation-name-on-batch-hydration-for-specific-service.yml +++ b/test/src/test/resources/fixtures/hydration/can-generate-legacy-operation-name-on-batch-hydration-for-specific-service.yml @@ -16,7 +16,13 @@ overallSchema: } type Foo { id: ID - bar: [Bar] @hydrated(service: "service2" field: "barsById" arguments: [{name: "id" value: "$source.barId"}] identifiedBy: "id") + bar: [Bar] + @hydrated( + service: "service2" + field: "barsById" + arguments: [{name: "id" value: "$source.barId"}] + identifiedBy: "id" + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/can-generate-legacy-operation-name-on-batch-hydration.yml b/test/src/test/resources/fixtures/hydration/can-generate-legacy-operation-name-on-batch-hydration.yml index d28d37acd..bf1f9a66b 100644 --- a/test/src/test/resources/fixtures/hydration/can-generate-legacy-operation-name-on-batch-hydration.yml +++ b/test/src/test/resources/fixtures/hydration/can-generate-legacy-operation-name-on-batch-hydration.yml @@ -16,7 +16,13 @@ overallSchema: } type Foo { id: ID - bar: [Bar] @hydrated(service: "service2" field: "barsById" arguments: [{name: "id" value: "$source.barId"}] identifiedBy: "id") + bar: [Bar] + @hydrated( + service: "service2" + field: "barsById" + arguments: [{name: "id" value: "$source.barId"}] + identifiedBy: "id" + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/can-generate-legacy-operation-name-on-hydration.yml b/test/src/test/resources/fixtures/hydration/can-generate-legacy-operation-name-on-hydration.yml index 6aba160ab..da1e1309b 100644 --- a/test/src/test/resources/fixtures/hydration/can-generate-legacy-operation-name-on-hydration.yml +++ b/test/src/test/resources/fixtures/hydration/can-generate-legacy-operation-name-on-hydration.yml @@ -16,8 +16,18 @@ overallSchema: } type Foo { id: ID - bar: Bar @hydrated(service: "service2" field: "barById" arguments: [{name: "id" value: "$source.barId"}]) - barLongerInput: Bar @hydrated(service: "service2" field: "barById" arguments: [{name: "id" value: "$source.fooDetails.externalBarId"}]) + bar: Bar + @hydrated( + service: "service2" + field: "barById" + arguments: [{name: "id" value: "$source.barId"}] + ) + barLongerInput: Bar + @hydrated( + service: "service2" + field: "barById" + arguments: [{name: "id" value: "$source.fooDetails.externalBarId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/complex identified by/complex-identified-by-doesnt-use-all-input-fields-in-the-input-identified-by-argument.yml b/test/src/test/resources/fixtures/hydration/complex identified by/complex-identified-by-doesnt-use-all-input-fields-in-the-input-identified-by-argument.yml index bd4101a33..31e7b9992 100644 --- a/test/src/test/resources/fixtures/hydration/complex identified by/complex-identified-by-doesnt-use-all-input-fields-in-the-input-identified-by-argument.yml +++ b/test/src/test/resources/fixtures/hydration/complex identified by/complex-identified-by-doesnt-use-all-input-fields-in-the-input-identified-by-argument.yml @@ -226,4 +226,4 @@ response: |- ] }, "errors": [] - } \ No newline at end of file + } diff --git a/test/src/test/resources/fixtures/hydration/complex identified by/complex-identified-by-with-indexed-hydration.yml b/test/src/test/resources/fixtures/hydration/complex identified by/complex-identified-by-with-indexed-hydration.yml index 65feb152e..5694a6800 100644 --- a/test/src/test/resources/fixtures/hydration/complex identified by/complex-identified-by-with-indexed-hydration.yml +++ b/test/src/test/resources/fixtures/hydration/complex identified by/complex-identified-by-with-indexed-hydration.yml @@ -219,4 +219,4 @@ response: |- ] }, "errors": [] - } \ No newline at end of file + } diff --git a/test/src/test/resources/fixtures/hydration/expecting-one-child-error-on-extensive-field-argument-passed-to-hydration.yml b/test/src/test/resources/fixtures/hydration/expecting-one-child-error-on-extensive-field-argument-passed-to-hydration.yml index 7ce36fd8e..e52534e92 100644 --- a/test/src/test/resources/fixtures/hydration/expecting-one-child-error-on-extensive-field-argument-passed-to-hydration.yml +++ b/test/src/test/resources/fixtures/hydration/expecting-one-child-error-on-extensive-field-argument-passed-to-hydration.yml @@ -12,7 +12,14 @@ overallSchema: } type SoftwareCard @renamed(from: "Card") { id: ID - assignee: User @hydrated(service: "Users" field: "users" arguments: [{name: "accountIds" value: "$source.issue.assignee.accountId"}] identifiedBy: "accountId" batchSize: 3) + assignee: User + @hydrated( + service: "Users" + field: "users" + arguments: [{name: "accountIds" value: "$source.issue.assignee.accountId"}] + identifiedBy: "accountId" + batchSize: 3 + ) } Users: | type Query { diff --git a/test/src/test/resources/fixtures/hydration/expecting-one-child-error-on-extensive-field-argument-passed-to-synthetic-hydration.yml b/test/src/test/resources/fixtures/hydration/expecting-one-child-error-on-extensive-field-argument-passed-to-synthetic-hydration.yml index fdab962cb..66e108f65 100644 --- a/test/src/test/resources/fixtures/hydration/expecting-one-child-error-on-extensive-field-argument-passed-to-synthetic-hydration.yml +++ b/test/src/test/resources/fixtures/hydration/expecting-one-child-error-on-extensive-field-argument-passed-to-synthetic-hydration.yml @@ -12,7 +12,14 @@ overallSchema: } type SoftwareCard @renamed(from: "Card") { id: ID - assignee: User @hydrated(service: "Users" field: "usersQuery.users" arguments: [{name: "accountIds" value: "$source.issue.assignee.accountId"}] identifiedBy: "accountId" batchSize: 3) + assignee: User + @hydrated( + service: "Users" + field: "usersQuery.users" + arguments: [{name: "accountIds" value: "$source.issue.assignee.accountId"}] + identifiedBy: "accountId" + batchSize: 3 + ) } Users: | type Query { diff --git a/test/src/test/resources/fixtures/hydration/hydration-batching-returns-null.yml b/test/src/test/resources/fixtures/hydration/hydration-batching-returns-null.yml index 4edbde174..99f59a5e8 100644 --- a/test/src/test/resources/fixtures/hydration/hydration-batching-returns-null.yml +++ b/test/src/test/resources/fixtures/hydration/hydration-batching-returns-null.yml @@ -16,7 +16,12 @@ overallSchema: } type Foo { id: ID - bar: [Bar] @hydrated(service: "service2" field: "barsById" arguments: [{name: "id" value: "$source.barId"}]) + bar: [Bar] + @hydrated( + service: "service2" + field: "barsById" + arguments: [{name: "id" value: "$source.barId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/hydration-call-forwards-error.yml b/test/src/test/resources/fixtures/hydration/hydration-call-forwards-error.yml index dbfec135f..a905090cc 100644 --- a/test/src/test/resources/fixtures/hydration/hydration-call-forwards-error.yml +++ b/test/src/test/resources/fixtures/hydration/hydration-call-forwards-error.yml @@ -16,7 +16,12 @@ overallSchema: } type Foo { id: ID - bar: Bar @hydrated(service: "service2" field: "barById" arguments: [{name: "id" value: "$source.barId"}]) + bar: Bar + @hydrated( + service: "service2" + field: "barById" + arguments: [{name: "id" value: "$source.barId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/hydration-call-over-itself-with-renamed-types.yml b/test/src/test/resources/fixtures/hydration/hydration-call-over-itself-with-renamed-types.yml index 599f4fb34..2a5f16a42 100644 --- a/test/src/test/resources/fixtures/hydration/hydration-call-over-itself-with-renamed-types.yml +++ b/test/src/test/resources/fixtures/hydration/hydration-call-over-itself-with-renamed-types.yml @@ -17,7 +17,14 @@ overallSchema: type TestingMovie @renamed(from: "Movie") { id: ID! name: String - characters: [TestingCharacter] @hydrated(service: "testing" field: "characters" arguments: [{name: "ids" value: "$source.characterIds"}] identifiedBy: "id" batchSize: 3) + characters: [TestingCharacter] + @hydrated( + service: "testing" + field: "characters" + arguments: [{name: "ids" value: "$source.characterIds"}] + identifiedBy: "id" + batchSize: 3 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/hydration-call-with-fragments-in-the-hydrated-part-and-synthetic-field.yml b/test/src/test/resources/fixtures/hydration/hydration-call-with-fragments-in-the-hydrated-part-and-synthetic-field.yml index e6c9844b0..f38efaa20 100644 --- a/test/src/test/resources/fixtures/hydration/hydration-call-with-fragments-in-the-hydrated-part-and-synthetic-field.yml +++ b/test/src/test/resources/fixtures/hydration/hydration-call-with-fragments-in-the-hydrated-part-and-synthetic-field.yml @@ -20,7 +20,13 @@ overallSchema: type Issue { id: ID authorDetails: [AuthorDetail] - authors: [User] @hydrated(service: "UserService" field: "userQuery.usersByIds" arguments: [{name: "id" value: "$source.authorDetails.authorId"}] identifiedBy: "id") + authors: [User] + @hydrated( + service: "UserService" + field: "userQuery.usersByIds" + arguments: [{name: "id" value: "$source.authorDetails.authorId"}] + identifiedBy: "id" + ) } type AuthorDetail { name: String diff --git a/test/src/test/resources/fixtures/hydration/hydration-call-with-fragments-in-the-hydrated-part.yml b/test/src/test/resources/fixtures/hydration/hydration-call-with-fragments-in-the-hydrated-part.yml index 42d4630a8..cfdd9d622 100644 --- a/test/src/test/resources/fixtures/hydration/hydration-call-with-fragments-in-the-hydrated-part.yml +++ b/test/src/test/resources/fixtures/hydration/hydration-call-with-fragments-in-the-hydrated-part.yml @@ -17,7 +17,14 @@ overallSchema: type Issue { id: ID authorDetails: [AuthorDetail] - authors: [User] @hydrated(service: "UserService" field: "usersByIds" arguments: [{name: "id" value: "$source.authorDetails.authorId"}] identifiedBy: "id" batchSize: 2) + authors: [User] + @hydrated( + service: "UserService" + field: "usersByIds" + arguments: [{name: "id" value: "$source.authorDetails.authorId"}] + identifiedBy: "id" + batchSize: 2 + ) } type AuthorDetail { name: String diff --git a/test/src/test/resources/fixtures/hydration/hydration-from-field-in-interface-with-type-rename.yml b/test/src/test/resources/fixtures/hydration/hydration-from-field-in-interface-with-type-rename.yml index c42499739..39df77d02 100644 --- a/test/src/test/resources/fixtures/hydration/hydration-from-field-in-interface-with-type-rename.yml +++ b/test/src/test/resources/fixtures/hydration/hydration-from-field-in-interface-with-type-rename.yml @@ -9,7 +9,12 @@ overallSchema: type RenamedIssue @renamed(from: "Issue") { id: ID title: String - issueAuthor: RenamedUser @hydrated(service: "users" field: "user" arguments: [{name: "id" value: "$source.author.userId"}]) + issueAuthor: RenamedUser + @hydrated( + service: "users" + field: "user" + arguments: [{name: "id" value: "$source.author.userId"}] + ) } users: | type Query { diff --git a/test/src/test/resources/fixtures/hydration/hydration-from-field-in-interface.yml b/test/src/test/resources/fixtures/hydration/hydration-from-field-in-interface.yml index 9927a7a20..42e0611fd 100644 --- a/test/src/test/resources/fixtures/hydration/hydration-from-field-in-interface.yml +++ b/test/src/test/resources/fixtures/hydration/hydration-from-field-in-interface.yml @@ -9,7 +9,12 @@ overallSchema: type Issue { id: ID title: String - issueAuthor: User @hydrated(service: "users" field: "user" arguments: [{name: "id" value: "$source.author.userId"}]) + issueAuthor: User + @hydrated( + service: "users" + field: "user" + arguments: [{name: "id" value: "$source.author.userId"}] + ) } users: | type Query { diff --git a/test/src/test/resources/fixtures/hydration/hydration-inside-a-renamed-field.yml b/test/src/test/resources/fixtures/hydration/hydration-inside-a-renamed-field.yml index e7c045842..6e7379129 100644 --- a/test/src/test/resources/fixtures/hydration/hydration-inside-a-renamed-field.yml +++ b/test/src/test/resources/fixtures/hydration/hydration-inside-a-renamed-field.yml @@ -15,7 +15,12 @@ overallSchema: } type Foo { id: ID! - fooBar: RenamedBar @hydrated(service: "Bar" field: "barById" arguments: [{name: "id" value: "$source.fooBarId"}]) + fooBar: RenamedBar + @hydrated( + service: "Bar" + field: "barById" + arguments: [{name: "id" value: "$source.fooBarId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/hydration-list-input.yml b/test/src/test/resources/fixtures/hydration/hydration-list-input.yml index 3df67300e..0c061e4a2 100644 --- a/test/src/test/resources/fixtures/hydration/hydration-list-input.yml +++ b/test/src/test/resources/fixtures/hydration/hydration-list-input.yml @@ -16,7 +16,12 @@ overallSchema: } type Foo { id: ID - bar: [Bar] @hydrated(service: "service2" field: "barById" arguments: [{name: "id" value: "$source.barIds"}]) + bar: [Bar] + @hydrated( + service: "service2" + field: "barById" + arguments: [{name: "id" value: "$source.barIds"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/hydration-list-with-batching-forwards-error.yml b/test/src/test/resources/fixtures/hydration/hydration-list-with-batching-forwards-error.yml index 62aaabbfd..dfa6a92a4 100644 --- a/test/src/test/resources/fixtures/hydration/hydration-list-with-batching-forwards-error.yml +++ b/test/src/test/resources/fixtures/hydration/hydration-list-with-batching-forwards-error.yml @@ -16,7 +16,12 @@ overallSchema: } type Foo { id: ID - bar: [Bar] @hydrated(service: "service2" field: "barsById" arguments: [{name: "id" value: "$source.barId"}]) + bar: [Bar] + @hydrated( + service: "service2" + field: "barsById" + arguments: [{name: "id" value: "$source.barId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/hydration-list-with-batching.yml b/test/src/test/resources/fixtures/hydration/hydration-list-with-batching.yml index 49d90cf61..29bb5ae37 100644 --- a/test/src/test/resources/fixtures/hydration/hydration-list-with-batching.yml +++ b/test/src/test/resources/fixtures/hydration/hydration-list-with-batching.yml @@ -16,7 +16,13 @@ overallSchema: } type Foo { id: ID - bar: [Bar] @hydrated(service: "service2" field: "barsById" arguments: [{name: "id" value: "$source.barId"}] identifiedBy: "id") + bar: [Bar] + @hydrated( + service: "service2" + field: "barsById" + arguments: [{name: "id" value: "$source.barId"}] + identifiedBy: "id" + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/hydration-list-with-one-element.yml b/test/src/test/resources/fixtures/hydration/hydration-list-with-one-element.yml index bb335106f..c99796339 100644 --- a/test/src/test/resources/fixtures/hydration/hydration-list-with-one-element.yml +++ b/test/src/test/resources/fixtures/hydration/hydration-list-with-one-element.yml @@ -16,7 +16,12 @@ overallSchema: } type Foo { id: ID - bar: [Bar] @hydrated(service: "service2" field: "barById" arguments: [{name: "id" value: "$source.barId"}]) + bar: [Bar] + @hydrated( + service: "service2" + field: "barById" + arguments: [{name: "id" value: "$source.barId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/hydration-with-interfaces-asking-typename.yml b/test/src/test/resources/fixtures/hydration/hydration-with-interfaces-asking-typename.yml index 1fd22e077..1bfba306e 100644 --- a/test/src/test/resources/fixtures/hydration/hydration-with-interfaces-asking-typename.yml +++ b/test/src/test/resources/fixtures/hydration/hydration-with-interfaces-asking-typename.yml @@ -14,7 +14,12 @@ overallSchema: id: ID } type User implements Node { - id: ID @hydrated(service: "Issues" field: "ariById" arguments: [{name: "id" value: "$source.id"}]) + id: ID + @hydrated( + service: "Issues" + field: "ariById" + arguments: [{name: "id" value: "$source.id"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/hydration-with-interfaces-no-source-id.yml b/test/src/test/resources/fixtures/hydration/hydration-with-interfaces-no-source-id.yml index 2331e8777..3a68c6c11 100644 --- a/test/src/test/resources/fixtures/hydration/hydration-with-interfaces-no-source-id.yml +++ b/test/src/test/resources/fixtures/hydration/hydration-with-interfaces-no-source-id.yml @@ -14,7 +14,12 @@ overallSchema: id: ID } type User implements Node { - id: ID @hydrated(service: "Issues" field: "idByAri" arguments: [{name: "id" value: "$source.ari"}]) + id: ID + @hydrated( + service: "Issues" + field: "idByAri" + arguments: [{name: "id" value: "$source.ari"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/hydration-with-interfaces.yml b/test/src/test/resources/fixtures/hydration/hydration-with-interfaces.yml index 296f73378..3349f4ddf 100644 --- a/test/src/test/resources/fixtures/hydration/hydration-with-interfaces.yml +++ b/test/src/test/resources/fixtures/hydration/hydration-with-interfaces.yml @@ -14,7 +14,12 @@ overallSchema: id: ID } type User implements Node { - id: ID @hydrated(service: "Issues" field: "idByAri" arguments: [{name: "id" value: "$source.ari"}]) + id: ID + @hydrated( + service: "Issues" + field: "idByAri" + arguments: [{name: "id" value: "$source.ari"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/hydration-with-more-interfaces.yml b/test/src/test/resources/fixtures/hydration/hydration-with-more-interfaces.yml index 38e67f6c4..51dd348b9 100644 --- a/test/src/test/resources/fixtures/hydration/hydration-with-more-interfaces.yml +++ b/test/src/test/resources/fixtures/hydration/hydration-with-more-interfaces.yml @@ -12,13 +12,23 @@ overallSchema: id: ID } type Troll implements Node { - id: ID @hydrated(service: "Issues" field: "trollName" arguments: [{name: "id" value: "$source.id"}]) + id: ID + @hydrated( + service: "Issues" + field: "trollName" + arguments: [{name: "id" value: "$source.id"}] + ) } interface Node { id: ID } type User implements Node { - id: ID @hydrated(service: "Issues" field: "ariById" arguments: [{name: "id" value: "$source.id"}]) + id: ID + @hydrated( + service: "Issues" + field: "ariById" + arguments: [{name: "id" value: "$source.id"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/hydration-works-when-an-ancestor-field-has-been-renamed.yml b/test/src/test/resources/fixtures/hydration/hydration-works-when-an-ancestor-field-has-been-renamed.yml index 4e7e90571..16bd2e8f7 100644 --- a/test/src/test/resources/fixtures/hydration/hydration-works-when-an-ancestor-field-has-been-renamed.yml +++ b/test/src/test/resources/fixtures/hydration/hydration-works-when-an-ancestor-field-has-been-renamed.yml @@ -7,7 +7,12 @@ overallSchema: id: ID } type DevOpsRelationship @renamed(from: "Relationship") { - devOpsIssue: DevOpsIssue @hydrated(service: "IssueService" field: "issue" arguments: [{name: "id" value: "$source.issueId"}]) + devOpsIssue: DevOpsIssue + @hydrated( + service: "IssueService" + field: "issue" + arguments: [{name: "id" value: "$source.issueId"}] + ) } type DevOpsRelationshipConnection @renamed(from: "RelationshipConnection") { nodes: [DevOpsRelationship] diff --git a/test/src/test/resources/fixtures/hydration/index/hydration-matching-using-index-one-batch-returns-errors.yml b/test/src/test/resources/fixtures/hydration/index/hydration-matching-using-index-one-batch-returns-errors.yml index 4837e4e51..9b3d0b642 100644 --- a/test/src/test/resources/fixtures/hydration/index/hydration-matching-using-index-one-batch-returns-errors.yml +++ b/test/src/test/resources/fixtures/hydration/index/hydration-matching-using-index-one-batch-returns-errors.yml @@ -16,7 +16,14 @@ overallSchema: } type Issue { id: ID - authors: [User] @hydrated(service: "UserService" field: "usersByIds" arguments: [{name: "ids" value: "$source.authorIds"}] indexed: true batchSize: 2) + authors: [User] + @hydrated( + service: "UserService" + field: "usersByIds" + arguments: [{name: "ids" value: "$source.authorIds"}] + indexed: true + batchSize: 2 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/index/hydration-matching-using-index-result-size-invariant-mismatch.yml b/test/src/test/resources/fixtures/hydration/index/hydration-matching-using-index-result-size-invariant-mismatch.yml index 51a97bfa0..67c41da07 100644 --- a/test/src/test/resources/fixtures/hydration/index/hydration-matching-using-index-result-size-invariant-mismatch.yml +++ b/test/src/test/resources/fixtures/hydration/index/hydration-matching-using-index-result-size-invariant-mismatch.yml @@ -16,7 +16,14 @@ overallSchema: } type Issue { id: ID - authors: [User] @hydrated(service: "UserService" field: "usersByIds" arguments: [{name: "ids" value: "$source.authorIds"}] indexed: true batchSize: 5) + authors: [User] + @hydrated( + service: "UserService" + field: "usersByIds" + arguments: [{name: "ids" value: "$source.authorIds"}] + indexed: true + batchSize: 5 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/index/hydration-matching-using-index-returning-errors.yml b/test/src/test/resources/fixtures/hydration/index/hydration-matching-using-index-returning-errors.yml index 2d4c020a9..489d0cb0d 100644 --- a/test/src/test/resources/fixtures/hydration/index/hydration-matching-using-index-returning-errors.yml +++ b/test/src/test/resources/fixtures/hydration/index/hydration-matching-using-index-returning-errors.yml @@ -16,7 +16,14 @@ overallSchema: } type Issue { id: ID - authors: [User] @hydrated(service: "UserService" field: "usersByIds" arguments: [{name: "ids" value: "$source.authorIds"}] indexed: true batchSize: 5) + authors: [User] + @hydrated( + service: "UserService" + field: "usersByIds" + arguments: [{name: "ids" value: "$source.authorIds"}] + indexed: true + batchSize: 5 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/index/hydration-matching-using-index-returning-null-elements.yml b/test/src/test/resources/fixtures/hydration/index/hydration-matching-using-index-returning-null-elements.yml index 4cdb93ec1..c8db54572 100644 --- a/test/src/test/resources/fixtures/hydration/index/hydration-matching-using-index-returning-null-elements.yml +++ b/test/src/test/resources/fixtures/hydration/index/hydration-matching-using-index-returning-null-elements.yml @@ -16,7 +16,14 @@ overallSchema: } type Issue { id: ID - authors: [User] @hydrated(service: "UserService" field: "usersByIds" arguments: [{name: "ids" value: "$source.authorIds"}] indexed: true batchSize: 5) + authors: [User] + @hydrated( + service: "UserService" + field: "usersByIds" + arguments: [{name: "ids" value: "$source.authorIds"}] + indexed: true + batchSize: 5 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/index/hydration-matching-using-index-returning-null.yml b/test/src/test/resources/fixtures/hydration/index/hydration-matching-using-index-returning-null.yml index b3ba2ef84..2839f815b 100644 --- a/test/src/test/resources/fixtures/hydration/index/hydration-matching-using-index-returning-null.yml +++ b/test/src/test/resources/fixtures/hydration/index/hydration-matching-using-index-returning-null.yml @@ -16,7 +16,14 @@ overallSchema: } type Issue { id: ID - authors: [User] @hydrated(service: "UserService" field: "usersByIds" arguments: [{name: "ids" value: "$source.authorIds"}] indexed: true batchSize: 5) + authors: [User] + @hydrated( + service: "UserService" + field: "usersByIds" + arguments: [{name: "ids" value: "$source.authorIds"}] + indexed: true + batchSize: 5 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/index/hydration-matching-using-index-with-lists-with-hydration-field-not-exposed.yml b/test/src/test/resources/fixtures/hydration/index/hydration-matching-using-index-with-lists-with-hydration-field-not-exposed.yml index 046882712..476fa650f 100644 --- a/test/src/test/resources/fixtures/hydration/index/hydration-matching-using-index-with-lists-with-hydration-field-not-exposed.yml +++ b/test/src/test/resources/fixtures/hydration/index/hydration-matching-using-index-with-lists-with-hydration-field-not-exposed.yml @@ -17,7 +17,14 @@ overallSchema: } type Issue { id: ID - authors: [User] @hydrated(service: "UserService" field: "usersByIssueIds" arguments: [{name: "issueIds" value: "$source.id"}] indexed: true batchSize: 5) + authors: [User] + @hydrated( + service: "UserService" + field: "usersByIssueIds" + arguments: [{name: "issueIds" value: "$source.id"}] + indexed: true + batchSize: 5 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/index/hydration-matching-using-index-with-lists.yml b/test/src/test/resources/fixtures/hydration/index/hydration-matching-using-index-with-lists.yml index 6080b685e..4cf616173 100644 --- a/test/src/test/resources/fixtures/hydration/index/hydration-matching-using-index-with-lists.yml +++ b/test/src/test/resources/fixtures/hydration/index/hydration-matching-using-index-with-lists.yml @@ -16,7 +16,14 @@ overallSchema: } type Issue { id: ID - authors: [User] @hydrated(service: "UserService" field: "usersByIssueIds" arguments: [{name: "issueIds" value: "$source.id"}] indexed: true batchSize: 5) + authors: [User] + @hydrated( + service: "UserService" + field: "usersByIssueIds" + arguments: [{name: "issueIds" value: "$source.id"}] + indexed: true + batchSize: 5 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/index/hydration-matching-using-index-with-null-input-nodes.yml b/test/src/test/resources/fixtures/hydration/index/hydration-matching-using-index-with-null-input-nodes.yml index 4fc3ac29e..ccff5b28d 100644 --- a/test/src/test/resources/fixtures/hydration/index/hydration-matching-using-index-with-null-input-nodes.yml +++ b/test/src/test/resources/fixtures/hydration/index/hydration-matching-using-index-with-null-input-nodes.yml @@ -16,7 +16,14 @@ overallSchema: } type Issue { id: ID - authors: [User] @hydrated(service: "UserService" field: "usersByIds" arguments: [{name: "ids" value: "$source.authorIds"}] indexed: true batchSize: 5) + authors: [User] + @hydrated( + service: "UserService" + field: "usersByIds" + arguments: [{name: "ids" value: "$source.authorIds"}] + indexed: true + batchSize: 5 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/index/hydration-matching-using-index.yml b/test/src/test/resources/fixtures/hydration/index/hydration-matching-using-index.yml index 31e19d8ef..064883df2 100644 --- a/test/src/test/resources/fixtures/hydration/index/hydration-matching-using-index.yml +++ b/test/src/test/resources/fixtures/hydration/index/hydration-matching-using-index.yml @@ -16,7 +16,14 @@ overallSchema: } type Issue { id: ID - authors: [User] @hydrated(service: "UserService" field: "usersByIds" arguments: [{name: "ids" value: "$source.authorIds"}] indexed: true batchSize: 5) + authors: [User] + @hydrated( + service: "UserService" + field: "usersByIds" + arguments: [{name: "ids" value: "$source.authorIds"}] + indexed: true + batchSize: 5 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/nested-list-hydration-under-a-renamed-top-level-field.yml b/test/src/test/resources/fixtures/hydration/nested-list-hydration-under-a-renamed-top-level-field.yml index 2c6c0fa59..599cbd076 100644 --- a/test/src/test/resources/fixtures/hydration/nested-list-hydration-under-a-renamed-top-level-field.yml +++ b/test/src/test/resources/fixtures/hydration/nested-list-hydration-under-a-renamed-top-level-field.yml @@ -11,14 +11,29 @@ overallSchema: space(id: ID): Space } type FooService @renamed(from: "Service") { - otherServices: Connection @hydrated(service: "Foo" field: "connection" arguments: [{name: "id" value: "$source.id"}]) + otherServices: Connection + @hydrated( + service: "Foo" + field: "connection" + arguments: [{name: "id" value: "$source.id"}] + ) } type Connection { edges: [Edge] - nodes: [Node] @hydrated(service: "Foo" field: "node" arguments: [{name: "id" value: "$source.edges.node"}]) + nodes: [Node] + @hydrated( + service: "Foo" + field: "node" + arguments: [{name: "id" value: "$source.edges.node"}] + ) } type Node { - space: Space @hydrated(service: "Foo" field: "space" arguments: [{name: "id" value: "$source.id"}]) + space: Space + @hydrated( + service: "Foo" + field: "space" + arguments: [{name: "id" value: "$source.id"}] + ) id: ID } type Space { @@ -26,7 +41,12 @@ overallSchema: name: String } type Edge { - node: Node @hydrated(service: "Foo" field: "node" arguments: [{name: "id" value: "$source.node"}]) + node: Node + @hydrated( + service: "Foo" + field: "node" + arguments: [{name: "id" value: "$source.node"}] + ) name: String id: ID } diff --git a/test/src/test/resources/fixtures/hydration/one-hydration-call-with-fragments-defined.yml b/test/src/test/resources/fixtures/hydration/one-hydration-call-with-fragments-defined.yml index d893e24fb..e08182a8d 100644 --- a/test/src/test/resources/fixtures/hydration/one-hydration-call-with-fragments-defined.yml +++ b/test/src/test/resources/fixtures/hydration/one-hydration-call-with-fragments-defined.yml @@ -16,8 +16,18 @@ overallSchema: } type Foo { id: ID - bar: Bar @hydrated(service: "service2" field: "barById" arguments: [{name: "id" value: "$source.barId"}]) - barLongerInput: Bar @hydrated(service: "service2" field: "barById" arguments: [{name: "id" value: "$source.fooDetails.externalBarId"}]) + bar: Bar + @hydrated( + service: "service2" + field: "barById" + arguments: [{name: "id" value: "$source.barId"}] + ) + barLongerInput: Bar + @hydrated( + service: "service2" + field: "barById" + arguments: [{name: "id" value: "$source.fooDetails.externalBarId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/one-hydration-call-with-input-value-having-longer-path.yml b/test/src/test/resources/fixtures/hydration/one-hydration-call-with-input-value-having-longer-path.yml index cdd1bb201..e88ee88c0 100644 --- a/test/src/test/resources/fixtures/hydration/one-hydration-call-with-input-value-having-longer-path.yml +++ b/test/src/test/resources/fixtures/hydration/one-hydration-call-with-input-value-having-longer-path.yml @@ -16,8 +16,18 @@ overallSchema: } type Foo { id: ID - bar: Bar @hydrated(service: "service2" field: "barById" arguments: [{name: "id" value: "$source.barId"}]) - barLongerInput: Bar @hydrated(service: "service2" field: "barById" arguments: [{name: "id" value: "$source.fooDetails.externalBarId"}]) + bar: Bar + @hydrated( + service: "service2" + field: "barById" + arguments: [{name: "id" value: "$source.barId"}] + ) + barLongerInput: Bar + @hydrated( + service: "service2" + field: "barById" + arguments: [{name: "id" value: "$source.fooDetails.externalBarId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/one-hydration-call-with-longer-path-and-same-named-overall-field.yml b/test/src/test/resources/fixtures/hydration/one-hydration-call-with-longer-path-and-same-named-overall-field.yml index d5627a159..f593cd1c1 100644 --- a/test/src/test/resources/fixtures/hydration/one-hydration-call-with-longer-path-and-same-named-overall-field.yml +++ b/test/src/test/resources/fixtures/hydration/one-hydration-call-with-longer-path-and-same-named-overall-field.yml @@ -17,7 +17,14 @@ overallSchema: type Issue { id: ID authorDetails: [AuthorDetail] - authors: [User] @hydrated(service: "UserService" field: "usersByIds" arguments: [{name: "id" value: "$source.authorDetails.authorId"}] identifiedBy: "id" batchSize: 2) + authors: [User] + @hydrated( + service: "UserService" + field: "usersByIds" + arguments: [{name: "id" value: "$source.authorDetails.authorId"}] + identifiedBy: "id" + batchSize: 2 + ) } type AuthorDetail { name: String diff --git a/test/src/test/resources/fixtures/hydration/one-hydration-call-with-longer-path-arguments-and-merged-fields.yml b/test/src/test/resources/fixtures/hydration/one-hydration-call-with-longer-path-arguments-and-merged-fields.yml index 84a8dbde8..a0452718e 100644 --- a/test/src/test/resources/fixtures/hydration/one-hydration-call-with-longer-path-arguments-and-merged-fields.yml +++ b/test/src/test/resources/fixtures/hydration/one-hydration-call-with-longer-path-arguments-and-merged-fields.yml @@ -16,7 +16,14 @@ overallSchema: } type Issue { id: ID - authors: [User] @hydrated(service: "UserService" field: "usersByIds" arguments: [{name: "id" value: "$source.authors.authorId"}] identifiedBy: "id" batchSize: 2) + authors: [User] + @hydrated( + service: "UserService" + field: "usersByIds" + arguments: [{name: "id" value: "$source.authors.authorId"}] + identifiedBy: "id" + batchSize: 2 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/one-hydration-call-with-variables-defined.yml b/test/src/test/resources/fixtures/hydration/one-hydration-call-with-variables-defined.yml index d9d3e628d..d32f5ce63 100644 --- a/test/src/test/resources/fixtures/hydration/one-hydration-call-with-variables-defined.yml +++ b/test/src/test/resources/fixtures/hydration/one-hydration-call-with-variables-defined.yml @@ -16,8 +16,18 @@ overallSchema: } type Foo { id: ID - bar: Bar @hydrated(service: "service2" field: "barById" arguments: [{name: "id" value: "$source.barId"}]) - barLongerInput: Bar @hydrated(service: "service2" field: "barById" arguments: [{name: "id" value: "$source.fooDetails.externalBarId"}]) + bar: Bar + @hydrated( + service: "service2" + field: "barById" + arguments: [{name: "id" value: "$source.barId"}] + ) + barLongerInput: Bar + @hydrated( + service: "service2" + field: "barById" + arguments: [{name: "id" value: "$source.fooDetails.externalBarId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/one-synthetic-hydration-call-with-longer-path-and-same-named-overall-field.yml b/test/src/test/resources/fixtures/hydration/one-synthetic-hydration-call-with-longer-path-and-same-named-overall-field.yml index 8b36f7034..d82b2785d 100644 --- a/test/src/test/resources/fixtures/hydration/one-synthetic-hydration-call-with-longer-path-and-same-named-overall-field.yml +++ b/test/src/test/resources/fixtures/hydration/one-synthetic-hydration-call-with-longer-path-and-same-named-overall-field.yml @@ -20,7 +20,14 @@ overallSchema: type Issue { id: ID authorDetails: [AuthorDetail] - authors: [User] @hydrated(service: "UserService" field: "usersQuery.usersByIds" arguments: [{name: "id" value: "$source.authorDetails.authorId"}] identifiedBy: "id" batchSize: 2) + authors: [User] + @hydrated( + service: "UserService" + field: "usersQuery.usersByIds" + arguments: [{name: "id" value: "$source.authorDetails.authorId"}] + identifiedBy: "id" + batchSize: 2 + ) } type AuthorDetail { name: String diff --git a/test/src/test/resources/fixtures/hydration/one-synthetic-hydration-call-with-longer-path-arguments-and-merged-fields-and-renamed-type.yml b/test/src/test/resources/fixtures/hydration/one-synthetic-hydration-call-with-longer-path-arguments-and-merged-fields-and-renamed-type.yml index e913bee3f..0528ebf4d 100644 --- a/test/src/test/resources/fixtures/hydration/one-synthetic-hydration-call-with-longer-path-arguments-and-merged-fields-and-renamed-type.yml +++ b/test/src/test/resources/fixtures/hydration/one-synthetic-hydration-call-with-longer-path-arguments-and-merged-fields-and-renamed-type.yml @@ -19,7 +19,14 @@ overallSchema: } type Issue { id: ID - authors: [RenamedUser] @hydrated(service: "UserService" field: "usersQuery.usersByIds" arguments: [{name: "id" value: "$source.authors.authorId"}] identifiedBy: "id" batchSize: 2) + authors: [RenamedUser] + @hydrated( + service: "UserService" + field: "usersQuery.usersByIds" + arguments: [{name: "id" value: "$source.authors.authorId"}] + identifiedBy: "id" + batchSize: 2 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/query-with-hydrated-interfaces-work-as-expected.yml b/test/src/test/resources/fixtures/hydration/query-with-hydrated-interfaces-work-as-expected.yml index 44c70fb8c..abc5fd15e 100644 --- a/test/src/test/resources/fixtures/hydration/query-with-hydrated-interfaces-work-as-expected.yml +++ b/test/src/test/resources/fixtures/hydration/query-with-hydrated-interfaces-work-as-expected.yml @@ -10,21 +10,36 @@ overallSchema: } interface Pet { name: String - owners: [Owner] @hydrated(service: "OwnerService" field: "ownerById" arguments: [{name: "id" value: "$source.ownerIds"}]) + owners: [Owner] + @hydrated( + service: "OwnerService" + field: "ownerById" + arguments: [{name: "id" value: "$source.ownerIds"}] + ) collar: Collar collarToRenamed: Collar @renamed(from: "collar") } type Cat implements Pet { name: String wearsBell: Boolean - owners: [Owner] @hydrated(service: "OwnerService" field: "ownerById" arguments: [{name: "id" value: "$source.ownerIds"}]) + owners: [Owner] + @hydrated( + service: "OwnerService" + field: "ownerById" + arguments: [{name: "id" value: "$source.ownerIds"}] + ) collar: Collar collarToRenamed: Collar @renamed(from: "collar") } type Dog implements Pet { name: String wearsCollar: Boolean - owners: [Owner] @hydrated(service: "OwnerService" field: "ownerById" arguments: [{name: "id" value: "$source.ownerIds"}]) + owners: [Owner] + @hydrated( + service: "OwnerService" + field: "ownerById" + arguments: [{name: "id" value: "$source.ownerIds"}] + ) collar: Collar collarToRenamed: Collar @renamed(from: "collar") } diff --git a/test/src/test/resources/fixtures/hydration/query-with-hydration-that-fail-with-errors-are-reflected-in-the-result.yml b/test/src/test/resources/fixtures/hydration/query-with-hydration-that-fail-with-errors-are-reflected-in-the-result.yml index d7793d4f8..44463fa38 100644 --- a/test/src/test/resources/fixtures/hydration/query-with-hydration-that-fail-with-errors-are-reflected-in-the-result.yml +++ b/test/src/test/resources/fixtures/hydration/query-with-hydration-that-fail-with-errors-are-reflected-in-the-result.yml @@ -9,7 +9,12 @@ overallSchema: } type Bar { name: String - nestedBar: Bar @hydrated(service: "Bar" field: "barById" arguments: [{name: "id" value: "$source.nestedBarId"}]) + nestedBar: Bar + @hydrated( + service: "Bar" + field: "barById" + arguments: [{name: "id" value: "$source.nestedBarId"}] + ) } Foo: | type Query { @@ -17,7 +22,12 @@ overallSchema: } type Foo { name: String - bar: Bar @hydrated(service: "Bar" field: "barById" arguments: [{name: "id" value: "$source.barId"}]) + bar: Bar + @hydrated( + service: "Bar" + field: "barById" + arguments: [{name: "id" value: "$source.barId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/query-with-synthetic-hydration-that-fail-with-errors-are-reflected-in-the-result.yml b/test/src/test/resources/fixtures/hydration/query-with-synthetic-hydration-that-fail-with-errors-are-reflected-in-the-result.yml index ec494a371..e55d01416 100644 --- a/test/src/test/resources/fixtures/hydration/query-with-synthetic-hydration-that-fail-with-errors-are-reflected-in-the-result.yml +++ b/test/src/test/resources/fixtures/hydration/query-with-synthetic-hydration-that-fail-with-errors-are-reflected-in-the-result.yml @@ -12,7 +12,12 @@ overallSchema: } type Bar { name: String - nestedBar: Bar @hydrated(service: "Bar" field: "barQuery.barById" arguments: [{name: "id" value: "$source.nestedBarId"}]) + nestedBar: Bar + @hydrated( + service: "Bar" + field: "barQuery.barById" + arguments: [{name: "id" value: "$source.nestedBarId"}] + ) } Foo: | type Query { @@ -20,7 +25,12 @@ overallSchema: } type Foo { name: String - bar: Bar @hydrated(service: "Bar" field: "barQuery.barById" arguments: [{name: "id" value: "$source.barId"}]) + bar: Bar + @hydrated( + service: "Bar" + field: "barQuery.barById" + arguments: [{name: "id" value: "$source.barId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/query-with-three-nested-hydrations-and-simple-data-and-lots-of-renames.yml b/test/src/test/resources/fixtures/hydration/query-with-three-nested-hydrations-and-simple-data-and-lots-of-renames.yml index 291076dd2..9953d9ca9 100644 --- a/test/src/test/resources/fixtures/hydration/query-with-three-nested-hydrations-and-simple-data-and-lots-of-renames.yml +++ b/test/src/test/resources/fixtures/hydration/query-with-three-nested-hydrations-and-simple-data-and-lots-of-renames.yml @@ -10,7 +10,13 @@ overallSchema: type Bar { barId: ID barName: String @renamed(from: "name") - nestedBar: Bar @hydrated(service: "Bar" field: "barsById" arguments: [{name: "id" value: "$source.nestedBarId"}] identifiedBy: "barId") + nestedBar: Bar + @hydrated( + service: "Bar" + field: "barsById" + arguments: [{name: "id" value: "$source.nestedBarId"}] + identifiedBy: "barId" + ) barDetails: BarDetails @renamed(from: "details") } type BarDetails @renamed(from: "Details") { @@ -27,7 +33,14 @@ overallSchema: } type Fooz @renamed(from: "Foo") { fooDetails: FooDetails @renamed(from: "details") - bar: Bar @hydrated(service: "Bar" field: "barsById" arguments: [{name: "id" value: "$source.barId"}] identifiedBy: "barId" batchSize: 2) + bar: Bar + @hydrated( + service: "Bar" + field: "barsById" + arguments: [{name: "id" value: "$source.barId"}] + identifiedBy: "barId" + batchSize: 2 + ) } type FooDetails @renamed(from: "Details") { fooName: String @renamed(from: "name") diff --git a/test/src/test/resources/fixtures/hydration/query-with-three-nested-hydrations-and-simple-data.yml b/test/src/test/resources/fixtures/hydration/query-with-three-nested-hydrations-and-simple-data.yml index c1a1ecb24..22a0bbed3 100644 --- a/test/src/test/resources/fixtures/hydration/query-with-three-nested-hydrations-and-simple-data.yml +++ b/test/src/test/resources/fixtures/hydration/query-with-three-nested-hydrations-and-simple-data.yml @@ -10,7 +10,13 @@ overallSchema: type Bar { barId: ID name: String - nestedBar: Bar @hydrated(service: "Bar" field: "barsById" arguments: [{name: "id" value: "$source.nestedBarId"}] identifiedBy: "barId") + nestedBar: Bar + @hydrated( + service: "Bar" + field: "barsById" + arguments: [{name: "id" value: "$source.nestedBarId"}] + identifiedBy: "barId" + ) } Foo: | type Query { @@ -18,7 +24,14 @@ overallSchema: } type Foo { name: String - bar: Bar @hydrated(service: "Bar" field: "barsById" arguments: [{name: "id" value: "$source.barId"}] identifiedBy: "barId" batchSize: 2) + bar: Bar + @hydrated( + service: "Bar" + field: "barsById" + arguments: [{name: "id" value: "$source.barId"}] + identifiedBy: "barId" + batchSize: 2 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/query-with-three-nested-hydrations-and-synthetic-fields.yml b/test/src/test/resources/fixtures/hydration/query-with-three-nested-hydrations-and-synthetic-fields.yml index 741392f39..2c1a8dda6 100644 --- a/test/src/test/resources/fixtures/hydration/query-with-three-nested-hydrations-and-synthetic-fields.yml +++ b/test/src/test/resources/fixtures/hydration/query-with-three-nested-hydrations-and-synthetic-fields.yml @@ -13,7 +13,13 @@ overallSchema: type Bar { barId: ID name: String - nestedBar: Bar @hydrated(service: "Bar" field: "barsQuery.barsById" arguments: [{ name: "id" value: "$source.nestedBarId"}] identifiedBy: "barId") + nestedBar: Bar + @hydrated( + service: "Bar" + field: "barsQuery.barsById" + arguments: [{ name: "id" value: "$source.nestedBarId"}] + identifiedBy: "barId" + ) } Foo: | type Query { @@ -21,7 +27,14 @@ overallSchema: } type Foo { name: String - bar: Bar @hydrated(service: "Bar" field: "barsQuery.barsById" arguments: [{ name: "id" value: "$source.barId"}] identifiedBy: "barId" batchSize: 2) + bar: Bar + @hydrated( + service: "Bar" + field: "barsQuery.barsById" + arguments: [{ name: "id" value: "$source.barId"}] + identifiedBy: "barId" + batchSize: 2 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/query-with-three-nested-hydrations.yml b/test/src/test/resources/fixtures/hydration/query-with-three-nested-hydrations.yml index 9f6f45061..05044fd2c 100644 --- a/test/src/test/resources/fixtures/hydration/query-with-three-nested-hydrations.yml +++ b/test/src/test/resources/fixtures/hydration/query-with-three-nested-hydrations.yml @@ -10,7 +10,13 @@ overallSchema: type Bar { barId: ID name: String - nestedBar: Bar @hydrated(service: "Bar" field: "barsById" arguments: [{name: "id" value: "$source.nestedBarId"}] identifiedBy: "barId") + nestedBar: Bar + @hydrated( + service: "Bar" + field: "barsById" + arguments: [{name: "id" value: "$source.nestedBarId"}] + identifiedBy: "barId" + ) } Foo: | type Query { @@ -18,7 +24,14 @@ overallSchema: } type Foo { name: String - bar: Bar @hydrated(service: "Bar" field: "barsById" arguments: [{name: "id" value: "$source.barId"}] identifiedBy: "barId" batchSize: 2) + bar: Bar + @hydrated( + service: "Bar" + field: "barsById" + arguments: [{name: "id" value: "$source.barId"}] + identifiedBy: "barId" + batchSize: 2 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/renamed-and-hydrated-query-using-same-underlying-source.yml b/test/src/test/resources/fixtures/hydration/renamed-and-hydrated-query-using-same-underlying-source.yml index d79bee13b..62c5742b5 100644 --- a/test/src/test/resources/fixtures/hydration/renamed-and-hydrated-query-using-same-underlying-source.yml +++ b/test/src/test/resources/fixtures/hydration/renamed-and-hydrated-query-using-same-underlying-source.yml @@ -9,7 +9,12 @@ overallSchema: } type Foo { renamedField: String @renamed(from: "issue.field") - details: [Detail] @hydrated(service: "Foo" field: "detail" arguments: [{name: "detailId" value: "$source.issue.fooId"}]) + details: [Detail] + @hydrated( + service: "Foo" + field: "detail" + arguments: [{name: "detailId" value: "$source.issue.fooId"}] + ) } type Detail { detailId: ID! diff --git a/test/src/test/resources/fixtures/hydration/repeated-hydrated-fields-on-the-same-level-overlapping-fields-in-the-query.yml b/test/src/test/resources/fixtures/hydration/repeated-hydrated-fields-on-the-same-level-overlapping-fields-in-the-query.yml index 01fa04395..824e9ac30 100644 --- a/test/src/test/resources/fixtures/hydration/repeated-hydrated-fields-on-the-same-level-overlapping-fields-in-the-query.yml +++ b/test/src/test/resources/fixtures/hydration/repeated-hydrated-fields-on-the-same-level-overlapping-fields-in-the-query.yml @@ -8,7 +8,12 @@ overallSchema: issue(issueId: ID): Issue } type Foo { - issue: Issue @hydrated(service: "Foo" field: "issue" arguments: [{name: "issueId" value: "$source.issueId"}]) + issue: Issue + @hydrated( + service: "Foo" + field: "issue" + arguments: [{name: "issueId" value: "$source.issueId"}] + ) } type Issue { id: ID diff --git a/test/src/test/resources/fixtures/hydration/repeated-hydrated-fields-on-the-same-level-when-using-batch-hydration.yml b/test/src/test/resources/fixtures/hydration/repeated-hydrated-fields-on-the-same-level-when-using-batch-hydration.yml index b7db63a8a..58078c37f 100644 --- a/test/src/test/resources/fixtures/hydration/repeated-hydrated-fields-on-the-same-level-when-using-batch-hydration.yml +++ b/test/src/test/resources/fixtures/hydration/repeated-hydrated-fields-on-the-same-level-when-using-batch-hydration.yml @@ -8,7 +8,12 @@ overallSchema: issues(issueIds: [ID!]): [Issue!] } type Foo { - issue: Issue @hydrated(service: "Foo" field: "issues" arguments: [{name: "issueIds" value: "$source.issueId"}]) + issue: Issue + @hydrated( + service: "Foo" + field: "issues" + arguments: [{name: "issueIds" value: "$source.issueId"}] + ) } type Issue { id: ID diff --git a/test/src/test/resources/fixtures/hydration/repeated-hydrated-fields-on-the-same-level.yml b/test/src/test/resources/fixtures/hydration/repeated-hydrated-fields-on-the-same-level.yml index 9f7205274..7202a4979 100644 --- a/test/src/test/resources/fixtures/hydration/repeated-hydrated-fields-on-the-same-level.yml +++ b/test/src/test/resources/fixtures/hydration/repeated-hydrated-fields-on-the-same-level.yml @@ -8,7 +8,12 @@ overallSchema: issue(issueId: ID): Issue } type Foo { - issue: Issue @hydrated(service: "Foo" field: "issue" arguments: [{name: "issueId" value: "$source.issueId"}]) + issue: Issue + @hydrated( + service: "Foo" + field: "issue" + arguments: [{name: "issueId" value: "$source.issueId"}] + ) } type Issue { id: ID diff --git a/test/src/test/resources/fixtures/hydration/same-source-for-2-hydrations.yml b/test/src/test/resources/fixtures/hydration/same-source-for-2-hydrations.yml index 1220024d1..e6662962b 100644 --- a/test/src/test/resources/fixtures/hydration/same-source-for-2-hydrations.yml +++ b/test/src/test/resources/fixtures/hydration/same-source-for-2-hydrations.yml @@ -9,8 +9,18 @@ overallSchema: issue(issueId: ID): Issue } type Foo { - issue: Issue @hydrated(service: "Foo" field: "issue" arguments: [{name: "issueId" value: "$source.fooId"}]) - detail: Detail @hydrated(service: "Foo" field: "detail" arguments: [{name: "detailId" value: "$source.fooId"}]) + issue: Issue + @hydrated( + service: "Foo" + field: "issue" + arguments: [{name: "issueId" value: "$source.fooId"}] + ) + detail: Detail + @hydrated( + service: "Foo" + field: "detail" + arguments: [{name: "detailId" value: "$source.fooId"}] + ) } type Detail { detailId: ID! diff --git a/test/src/test/resources/fixtures/hydration/same-source-for-2-nested-hydrations-and-a-rename.yml b/test/src/test/resources/fixtures/hydration/same-source-for-2-nested-hydrations-and-a-rename.yml index 696dd1789..3ff823f53 100644 --- a/test/src/test/resources/fixtures/hydration/same-source-for-2-nested-hydrations-and-a-rename.yml +++ b/test/src/test/resources/fixtures/hydration/same-source-for-2-nested-hydrations-and-a-rename.yml @@ -10,8 +10,18 @@ overallSchema: } type Foo { renamedField: String @renamed(from: "issue.field") - issue: Issue @hydrated(service: "Foo" field: "issue" arguments: [{name: "issueId" value: "$source.issue.fooId"}]) - detail: Detail @hydrated(service: "Foo" field: "detail" arguments: [{name: "detailId" value: "$source.issue.fooId"}]) + issue: Issue + @hydrated( + service: "Foo" + field: "issue" + arguments: [{name: "issueId" value: "$source.issue.fooId"}] + ) + detail: Detail + @hydrated( + service: "Foo" + field: "detail" + arguments: [{name: "detailId" value: "$source.issue.fooId"}] + ) } type Detail { detailId: ID! diff --git a/test/src/test/resources/fixtures/hydration/simple-hydration-query-with-a-synthetic-field.yml b/test/src/test/resources/fixtures/hydration/simple-hydration-query-with-a-synthetic-field.yml index 77ad37a70..07b7a8a2e 100644 --- a/test/src/test/resources/fixtures/hydration/simple-hydration-query-with-a-synthetic-field.yml +++ b/test/src/test/resources/fixtures/hydration/simple-hydration-query-with-a-synthetic-field.yml @@ -19,7 +19,12 @@ overallSchema: } type Issue { id: ID - project: Project @hydrated(service: "service2" field: "projects.project" arguments: [{name: "id" value: "$source.projectId"}]) + project: Project + @hydrated( + service: "service2" + field: "projects.project" + arguments: [{name: "id" value: "$source.projectId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/simple-synthetic-hydration-with-one-service-and-type-renaming.yml b/test/src/test/resources/fixtures/hydration/simple-synthetic-hydration-with-one-service-and-type-renaming.yml index b66465289..1b51ce34f 100644 --- a/test/src/test/resources/fixtures/hydration/simple-synthetic-hydration-with-one-service-and-type-renaming.yml +++ b/test/src/test/resources/fixtures/hydration/simple-synthetic-hydration-with-one-service-and-type-renaming.yml @@ -20,7 +20,14 @@ overallSchema: type Movie { id: ID! name: String - character: TestingCharacter @hydrated(service: "testing" field: "tests.character" arguments: [{name: "id" value: "$source.characterId"}] identifiedBy: "id" batchSize: 3) + character: TestingCharacter + @hydrated( + service: "testing" + field: "tests.character" + arguments: [{name: "id" value: "$source.characterId"}] + identifiedBy: "id" + batchSize: 3 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/synthetic-hydration-batching-returns-null.yml b/test/src/test/resources/fixtures/hydration/synthetic-hydration-batching-returns-null.yml index cbc7d27a9..4ee100b62 100644 --- a/test/src/test/resources/fixtures/hydration/synthetic-hydration-batching-returns-null.yml +++ b/test/src/test/resources/fixtures/hydration/synthetic-hydration-batching-returns-null.yml @@ -19,7 +19,12 @@ overallSchema: } type Foo { id: ID - bar: [Bar] @hydrated(service: "service2" field: "barsQuery.barsById" arguments: [{name: "id" value: "$source.barId"}]) + bar: [Bar] + @hydrated( + service: "service2" + field: "barsQuery.barsById" + arguments: [{name: "id" value: "$source.barId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/synthetic-hydration-call-over-itself-within-renamed-types.yml b/test/src/test/resources/fixtures/hydration/synthetic-hydration-call-over-itself-within-renamed-types.yml index 75f9e86ed..46df8fb3c 100644 --- a/test/src/test/resources/fixtures/hydration/synthetic-hydration-call-over-itself-within-renamed-types.yml +++ b/test/src/test/resources/fixtures/hydration/synthetic-hydration-call-over-itself-within-renamed-types.yml @@ -20,7 +20,14 @@ overallSchema: type TestingMovie @renamed(from: "Movie") { id: ID! name: String - characters: [TestingCharacter] @hydrated(service: "testing" field: "tests.characters" arguments: [{name: "ids" value: "$source.characterIds"}] identifiedBy: "id" batchSize: 3) + characters: [TestingCharacter] + @hydrated( + service: "testing" + field: "tests.characters" + arguments: [{name: "ids" value: "$source.characterIds"}] + identifiedBy: "id" + batchSize: 3 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/synthetic-hydration-forwards-error.yml b/test/src/test/resources/fixtures/hydration/synthetic-hydration-forwards-error.yml index f67cdd18c..e76978fa8 100644 --- a/test/src/test/resources/fixtures/hydration/synthetic-hydration-forwards-error.yml +++ b/test/src/test/resources/fixtures/hydration/synthetic-hydration-forwards-error.yml @@ -19,7 +19,12 @@ overallSchema: } type Foo { id: ID - bar: Bar @hydrated(service: "service2" field: "barsQuery.barById" arguments: [{name: "id" value: "$source.barId"}]) + bar: Bar + @hydrated( + service: "service2" + field: "barsQuery.barById" + arguments: [{name: "id" value: "$source.barId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/synthetic-hydration-input-is-empty-list.yml b/test/src/test/resources/fixtures/hydration/synthetic-hydration-input-is-empty-list.yml index d129bd528..0d91a0f57 100644 --- a/test/src/test/resources/fixtures/hydration/synthetic-hydration-input-is-empty-list.yml +++ b/test/src/test/resources/fixtures/hydration/synthetic-hydration-input-is-empty-list.yml @@ -19,7 +19,14 @@ overallSchema: } type Issue { id: ID - authors: [User] @hydrated(service: "UserService" field: "usersQuery.usersByIds" arguments: [{name: "ids" value: "$source.authorIds"}] identifiedBy: "id" batchSize: 2) + authors: [User] + @hydrated( + service: "UserService" + field: "usersQuery.usersByIds" + arguments: [{name: "ids" value: "$source.authorIds"}] + identifiedBy: "id" + batchSize: 2 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/synthetic-hydration-input-is-null.yml b/test/src/test/resources/fixtures/hydration/synthetic-hydration-input-is-null.yml index 58c9f4649..38735d1af 100644 --- a/test/src/test/resources/fixtures/hydration/synthetic-hydration-input-is-null.yml +++ b/test/src/test/resources/fixtures/hydration/synthetic-hydration-input-is-null.yml @@ -19,7 +19,14 @@ overallSchema: } type Issue { id: ID - authors: [User] @hydrated(service: "UserService" field: "usersQuery.usersByIds" arguments: [{name: "ids" value: "$source.authorIds"}] identifiedBy: "id" batchSize: 2) + authors: [User] + @hydrated( + service: "UserService" + field: "usersQuery.usersByIds" + arguments: [{name: "ids" value: "$source.authorIds"}] + identifiedBy: "id" + batchSize: 2 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/synthetic-hydration-list-with-batching-forwards-error.yml b/test/src/test/resources/fixtures/hydration/synthetic-hydration-list-with-batching-forwards-error.yml index 82488b187..b95d20ec5 100644 --- a/test/src/test/resources/fixtures/hydration/synthetic-hydration-list-with-batching-forwards-error.yml +++ b/test/src/test/resources/fixtures/hydration/synthetic-hydration-list-with-batching-forwards-error.yml @@ -19,7 +19,12 @@ overallSchema: } type Foo { id: ID - bar: [Bar] @hydrated(service: "service2" field: "barsQuery.barsById" arguments: [{name: "id" value: "$source.barId"}]) + bar: [Bar] + @hydrated( + service: "service2" + field: "barsQuery.barsById" + arguments: [{name: "id" value: "$source.barId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/synthetic-hydration-with-renamed-type.yml b/test/src/test/resources/fixtures/hydration/synthetic-hydration-with-renamed-type.yml index 441c63a45..118c005bc 100644 --- a/test/src/test/resources/fixtures/hydration/synthetic-hydration-with-renamed-type.yml +++ b/test/src/test/resources/fixtures/hydration/synthetic-hydration-with-renamed-type.yml @@ -18,7 +18,12 @@ overallSchema: } type Foo { id: ID! - fooBar: Bar @hydrated(service: "Bar" field: "bars.barById" arguments: [{name: "id" value: "$source.fooBarId"}]) + fooBar: Bar + @hydrated( + service: "Bar" + field: "bars.barById" + arguments: [{name: "id" value: "$source.fooBarId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/synthetic-hydration-works-when-an-ancestor-field-has-been-renamed.yml b/test/src/test/resources/fixtures/hydration/synthetic-hydration-works-when-an-ancestor-field-has-been-renamed.yml index cd5b83341..1d6807f67 100644 --- a/test/src/test/resources/fixtures/hydration/synthetic-hydration-works-when-an-ancestor-field-has-been-renamed.yml +++ b/test/src/test/resources/fixtures/hydration/synthetic-hydration-works-when-an-ancestor-field-has-been-renamed.yml @@ -7,7 +7,12 @@ overallSchema: id: ID } type DevOpsRelationship @renamed(from: "Relationship") { - devOpsIssue: DevOpsIssue @hydrated(service: "IssueService" field: "syntheticIssue.issue" arguments: [{name: "id" value: "$source.issueId"}]) + devOpsIssue: DevOpsIssue + @hydrated( + service: "IssueService" + field: "syntheticIssue.issue" + arguments: [{name: "id" value: "$source.issueId"}] + ) } type DevOpsRelationshipConnection @renamed(from: "RelationshipConnection") { devOpsNodes: [DevOpsRelationship] @renamed(from: "nodes") diff --git a/test/src/test/resources/fixtures/hydration/top-level-field-data-returns-null-in-batched-synthetic-hydration.yml b/test/src/test/resources/fixtures/hydration/top-level-field-data-returns-null-in-batched-synthetic-hydration.yml index 8716f540b..f63d53280 100644 --- a/test/src/test/resources/fixtures/hydration/top-level-field-data-returns-null-in-batched-synthetic-hydration.yml +++ b/test/src/test/resources/fixtures/hydration/top-level-field-data-returns-null-in-batched-synthetic-hydration.yml @@ -19,7 +19,14 @@ overallSchema: } type Issue { id: ID - authors: [User] @hydrated(service: "service2" field: "users.usersByIds" arguments: [{name: "id" value: "$source.authorIds"}] identifiedBy: "id" batchSize: 3) + authors: [User] + @hydrated( + service: "service2" + field: "users.usersByIds" + arguments: [{name: "id" value: "$source.authorIds"}] + identifiedBy: "id" + batchSize: 3 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/top-level-field-data-returns-null-in-synthetic-hydration.yml b/test/src/test/resources/fixtures/hydration/top-level-field-data-returns-null-in-synthetic-hydration.yml index 80a6c3793..2fa5af229 100644 --- a/test/src/test/resources/fixtures/hydration/top-level-field-data-returns-null-in-synthetic-hydration.yml +++ b/test/src/test/resources/fixtures/hydration/top-level-field-data-returns-null-in-synthetic-hydration.yml @@ -19,7 +19,12 @@ overallSchema: } type Issue { id: ID - project: Project @hydrated(service: "service2" field: "projects.project" arguments: [{name: "id" value: "$source.projectId"}]) + project: Project + @hydrated( + service: "service2" + field: "projects.project" + arguments: [{name: "id" value: "$source.projectId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/top-level-field-is-null-in-batched-synthetic-hydration.yml b/test/src/test/resources/fixtures/hydration/top-level-field-is-null-in-batched-synthetic-hydration.yml index eab5e105d..d19bc8ee2 100644 --- a/test/src/test/resources/fixtures/hydration/top-level-field-is-null-in-batched-synthetic-hydration.yml +++ b/test/src/test/resources/fixtures/hydration/top-level-field-is-null-in-batched-synthetic-hydration.yml @@ -18,7 +18,14 @@ overallSchema: } type Issue { id: ID - authors: [User] @hydrated(service: "service2" field: "users.usersByIds" arguments: [{name: "id" value: "$source.authorIds"}] identifiedBy: "id" batchSize: 3) + authors: [User] + @hydrated( + service: "service2" + field: "users.usersByIds" + arguments: [{name: "id" value: "$source.authorIds"}] + identifiedBy: "id" + batchSize: 3 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/top-level-field-is-null-in-synthetic-hydration.yml b/test/src/test/resources/fixtures/hydration/top-level-field-is-null-in-synthetic-hydration.yml index b404b19b3..0e4c29f57 100644 --- a/test/src/test/resources/fixtures/hydration/top-level-field-is-null-in-synthetic-hydration.yml +++ b/test/src/test/resources/fixtures/hydration/top-level-field-is-null-in-synthetic-hydration.yml @@ -19,7 +19,12 @@ overallSchema: } type Issue { id: ID - project: Project @hydrated(service: "service2" field: "projects.project" arguments: [{name: "id" value: "$source.projectId"}]) + project: Project + @hydrated( + service: "service2" + field: "projects.project" + arguments: [{name: "id" value: "$source.projectId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/hydration/transformer-on-hydration-fields.yml b/test/src/test/resources/fixtures/hydration/transformer-on-hydration-fields.yml index 00573639b..0aa22ae8e 100644 --- a/test/src/test/resources/fixtures/hydration/transformer-on-hydration-fields.yml +++ b/test/src/test/resources/fixtures/hydration/transformer-on-hydration-fields.yml @@ -8,7 +8,12 @@ overallSchema: } type Foo { id: ID - bar: Bar @hydrated(service: "service2" field: "barById" arguments: [{name: "id" value: "$source.barId"}]) + bar: Bar + @hydrated( + service: "service2" + field: "barById" + arguments: [{name: "id" value: "$source.barId"}] + ) } service2: | type Query { diff --git a/test/src/test/resources/fixtures/new hydration/index/new-hydration-matching-using-index-one-batch-returns-errors.yml b/test/src/test/resources/fixtures/new hydration/index/new-hydration-matching-using-index-one-batch-returns-errors.yml index 139f3c1fe..7c9d3405d 100644 --- a/test/src/test/resources/fixtures/new hydration/index/new-hydration-matching-using-index-one-batch-returns-errors.yml +++ b/test/src/test/resources/fixtures/new hydration/index/new-hydration-matching-using-index-one-batch-returns-errors.yml @@ -18,7 +18,14 @@ overallSchema: } type Issue { id: ID - authors: [User] @hydrated(service: "UserService" field: "usersByIds" arguments: [{name: "ids" value: "$source.authorIds"}] indexed: true batchSize: 2) + authors: [User] + @hydrated( + service: "UserService" + field: "usersByIds" + arguments: [{name: "ids" value: "$source.authorIds"}] + indexed: true + batchSize: 2 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/index/new-hydration-matching-using-index-result-size-invariant-mismatch.yml b/test/src/test/resources/fixtures/new hydration/index/new-hydration-matching-using-index-result-size-invariant-mismatch.yml index f3767f411..1aa7f3f34 100644 --- a/test/src/test/resources/fixtures/new hydration/index/new-hydration-matching-using-index-result-size-invariant-mismatch.yml +++ b/test/src/test/resources/fixtures/new hydration/index/new-hydration-matching-using-index-result-size-invariant-mismatch.yml @@ -18,7 +18,14 @@ overallSchema: } type Issue { id: ID - authors: [User] @hydrated(service: "UserService" field: "usersByIds" arguments: [{name: "ids" value: "$source.authorIds"}] indexed: true batchSize: 5) + authors: [User] + @hydrated( + service: "UserService" + field: "usersByIds" + arguments: [{name: "ids" value: "$source.authorIds"}] + indexed: true + batchSize: 5 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/index/new-hydration-matching-using-index-returning-errors.yml b/test/src/test/resources/fixtures/new hydration/index/new-hydration-matching-using-index-returning-errors.yml index 781664139..5948fa73f 100644 --- a/test/src/test/resources/fixtures/new hydration/index/new-hydration-matching-using-index-returning-errors.yml +++ b/test/src/test/resources/fixtures/new hydration/index/new-hydration-matching-using-index-returning-errors.yml @@ -18,7 +18,14 @@ overallSchema: } type Issue { id: ID - authors: [User] @hydrated(service: "UserService" field: "usersByIds" arguments: [{name: "ids" value: "$source.authorIds"}] indexed: true batchSize: 5) + authors: [User] + @hydrated( + service: "UserService" + field: "usersByIds" + arguments: [{name: "ids" value: "$source.authorIds"}] + indexed: true + batchSize: 5 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/index/new-hydration-matching-using-index-returning-null-elements.yml b/test/src/test/resources/fixtures/new hydration/index/new-hydration-matching-using-index-returning-null-elements.yml index a352f35bb..1aa029873 100644 --- a/test/src/test/resources/fixtures/new hydration/index/new-hydration-matching-using-index-returning-null-elements.yml +++ b/test/src/test/resources/fixtures/new hydration/index/new-hydration-matching-using-index-returning-null-elements.yml @@ -17,7 +17,14 @@ overallSchema: } type Issue { id: ID - authors: [User] @hydrated(service: "UserService" field: "usersByIds" arguments: [{name: "ids" value: "$source.authorIds"}] indexed: true batchSize: 5) + authors: [User] + @hydrated( + service: "UserService" + field: "usersByIds" + arguments: [{name: "ids" value: "$source.authorIds"}] + indexed: true + batchSize: 5 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/index/new-hydration-matching-using-index-returning-null.yml b/test/src/test/resources/fixtures/new hydration/index/new-hydration-matching-using-index-returning-null.yml index 5aac6caea..3d9c89147 100644 --- a/test/src/test/resources/fixtures/new hydration/index/new-hydration-matching-using-index-returning-null.yml +++ b/test/src/test/resources/fixtures/new hydration/index/new-hydration-matching-using-index-returning-null.yml @@ -18,7 +18,14 @@ overallSchema: } type Issue { id: ID - authors: [User] @hydrated(service: "UserService" field: "usersByIds" arguments: [{name: "ids" value: "$source.authorIds"}] indexed: true batchSize: 5) + authors: [User] + @hydrated( + service: "UserService" + field: "usersByIds" + arguments: [{name: "ids" value: "$source.authorIds"}] + indexed: true + batchSize: 5 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/index/new-hydration-matching-using-index-with-lists-with-hydration-field-not-exposed.yml b/test/src/test/resources/fixtures/new hydration/index/new-hydration-matching-using-index-with-lists-with-hydration-field-not-exposed.yml index 2415334db..c1d33a9c7 100644 --- a/test/src/test/resources/fixtures/new hydration/index/new-hydration-matching-using-index-with-lists-with-hydration-field-not-exposed.yml +++ b/test/src/test/resources/fixtures/new hydration/index/new-hydration-matching-using-index-with-lists-with-hydration-field-not-exposed.yml @@ -19,7 +19,14 @@ overallSchema: } type Issue { id: ID - authors: [User] @hydrated(service: "UserService" field: "usersByIssueIds" arguments: [{name: "issueIds" value: "$source.id"}] indexed: true batchSize: 5) + authors: [User] + @hydrated( + service: "UserService" + field: "usersByIssueIds" + arguments: [{name: "issueIds" value: "$source.id"}] + indexed: true + batchSize: 5 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/index/new-hydration-matching-using-index-with-lists.yml b/test/src/test/resources/fixtures/new hydration/index/new-hydration-matching-using-index-with-lists.yml index 17f2a546e..f4381fa14 100644 --- a/test/src/test/resources/fixtures/new hydration/index/new-hydration-matching-using-index-with-lists.yml +++ b/test/src/test/resources/fixtures/new hydration/index/new-hydration-matching-using-index-with-lists.yml @@ -16,7 +16,14 @@ overallSchema: } type Issue { id: ID - authors: [User] @hydrated(service: "UserService" field: "usersByIssueIds" arguments: [{name: "issueIds" value: "$source.id"}] indexed: true batchSize: 5) + authors: [User] + @hydrated( + service: "UserService" + field: "usersByIssueIds" + arguments: [{name: "issueIds" value: "$source.id"}] + indexed: true + batchSize: 5 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/index/new-hydration-matching-using-index-with-null-input-nodes.yml b/test/src/test/resources/fixtures/new hydration/index/new-hydration-matching-using-index-with-null-input-nodes.yml index 8553d7e46..4642697a0 100644 --- a/test/src/test/resources/fixtures/new hydration/index/new-hydration-matching-using-index-with-null-input-nodes.yml +++ b/test/src/test/resources/fixtures/new hydration/index/new-hydration-matching-using-index-with-null-input-nodes.yml @@ -18,7 +18,14 @@ overallSchema: } type Issue { id: ID - authors: [User] @hydrated(service: "UserService" field: "usersByIds" arguments: [{name: "ids" value: "$source.authorIds"}] indexed: true batchSize: 5) + authors: [User] + @hydrated( + service: "UserService" + field: "usersByIds" + arguments: [{name: "ids" value: "$source.authorIds"}] + indexed: true + batchSize: 5 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/index/new-hydration-matching-using-index.yml b/test/src/test/resources/fixtures/new hydration/index/new-hydration-matching-using-index.yml index 89cae997d..8451023f9 100644 --- a/test/src/test/resources/fixtures/new hydration/index/new-hydration-matching-using-index.yml +++ b/test/src/test/resources/fixtures/new hydration/index/new-hydration-matching-using-index.yml @@ -16,7 +16,14 @@ overallSchema: } type Issue { id: ID - authors: [User] @hydrated(service: "UserService" field: "usersByIds" arguments: [{name: "ids" value: "$source.authorIds"}] indexed: true batchSize: 5) + authors: [User] + @hydrated( + service: "UserService" + field: "usersByIds" + arguments: [{name: "ids" value: "$source.authorIds"}] + indexed: true + batchSize: 5 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-able-to-ask-for-field-and-use-same-field-as-hydration-source.yml b/test/src/test/resources/fixtures/new hydration/new-able-to-ask-for-field-and-use-same-field-as-hydration-source.yml index 5c3d466be..45ecde303 100644 --- a/test/src/test/resources/fixtures/new hydration/new-able-to-ask-for-field-and-use-same-field-as-hydration-source.yml +++ b/test/src/test/resources/fixtures/new hydration/new-able-to-ask-for-field-and-use-same-field-as-hydration-source.yml @@ -10,7 +10,12 @@ overallSchema: type Bar { barId: ID name: String - nestedBar: Bar @hydrated(service: "Bar" field: "barById" arguments: [{name: "id" value: "$source.barId"}]) + nestedBar: Bar + @hydrated( + service: "Bar" + field: "barById" + arguments: [{name: "id" value: "$source.barId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-all-hydration-fields-are-seen-by-transformer.yml b/test/src/test/resources/fixtures/new hydration/new-all-hydration-fields-are-seen-by-transformer.yml index e68d42fb9..e2f03cdf8 100644 --- a/test/src/test/resources/fixtures/new hydration/new-all-hydration-fields-are-seen-by-transformer.yml +++ b/test/src/test/resources/fixtures/new hydration/new-all-hydration-fields-are-seen-by-transformer.yml @@ -19,7 +19,12 @@ overallSchema: } type Foo { id: ID - bar: Bar @hydrated(service: "service2" field: "bars.barById" arguments: [{name: "id" value: "$source.barId"}]) + bar: Bar + @hydrated( + service: "service2" + field: "bars.barById" + arguments: [{name: "id" value: "$source.barId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-basic-hydration-with-actor-field-rename.yml b/test/src/test/resources/fixtures/new hydration/new-basic-hydration-with-actor-field-rename.yml index 2157b6383..78854485f 100644 --- a/test/src/test/resources/fixtures/new hydration/new-basic-hydration-with-actor-field-rename.yml +++ b/test/src/test/resources/fixtures/new hydration/new-basic-hydration-with-actor-field-rename.yml @@ -16,8 +16,18 @@ overallSchema: } type Foo { id: ID - bar: Bar @hydrated(service: "service2" field: "barByIdOverall" arguments: [{name: "id" value: "$source.barId"}]) - barLongerInput: Bar @hydrated(service: "service2" field: "barByIdOverall" arguments: [{name: "id" value: "$source.fooDetails.externalBarId"}]) + bar: Bar + @hydrated( + service: "service2" + field: "barByIdOverall" + arguments: [{name: "id" value: "$source.barId"}] + ) + barLongerInput: Bar + @hydrated( + service: "service2" + field: "barByIdOverall" + arguments: [{name: "id" value: "$source.fooDetails.externalBarId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-basic-hydration-with-static-arg-boolean.yml b/test/src/test/resources/fixtures/new hydration/new-basic-hydration-with-static-arg-boolean.yml index 22517d5a4..e875b399d 100644 --- a/test/src/test/resources/fixtures/new hydration/new-basic-hydration-with-static-arg-boolean.yml +++ b/test/src/test/resources/fixtures/new hydration/new-basic-hydration-with-static-arg-boolean.yml @@ -17,7 +17,12 @@ overallSchema: } type Foo { id: ID - bar: Bar @hydrated(service: "service2" field: "barWithSomeAttribute" arguments: [{name: "someAttribute" value: true}]) + bar: Bar + @hydrated( + service: "service2" + field: "barWithSomeAttribute" + arguments: [{name: "someAttribute" value: true}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-basic-hydration-with-static-arg-float.yml b/test/src/test/resources/fixtures/new hydration/new-basic-hydration-with-static-arg-float.yml index 16c23d8c8..c1c043894 100644 --- a/test/src/test/resources/fixtures/new hydration/new-basic-hydration-with-static-arg-float.yml +++ b/test/src/test/resources/fixtures/new hydration/new-basic-hydration-with-static-arg-float.yml @@ -17,7 +17,12 @@ overallSchema: } type Foo { id: ID - bar: Bar @hydrated(service: "service2" field: "barWithSomeFloat" arguments: [{name: "someFloat" value: 123.45}]) + bar: Bar + @hydrated( + service: "service2" + field: "barWithSomeFloat" + arguments: [{name: "someFloat" value: 123.45}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-basic-hydration-with-static-arg-integer.yml b/test/src/test/resources/fixtures/new hydration/new-basic-hydration-with-static-arg-integer.yml index 0dafe7336..d99cba90b 100644 --- a/test/src/test/resources/fixtures/new hydration/new-basic-hydration-with-static-arg-integer.yml +++ b/test/src/test/resources/fixtures/new hydration/new-basic-hydration-with-static-arg-integer.yml @@ -16,7 +16,12 @@ overallSchema: } type Foo { id: ID - bar: Bar @hydrated(service: "service2" field: "barById" arguments: [{name: "id" value: 12345}]) + bar: Bar + @hydrated( + service: "service2" + field: "barById" + arguments: [{name: "id" value: 12345}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-basic-hydration-with-static-args.yml b/test/src/test/resources/fixtures/new hydration/new-basic-hydration-with-static-args.yml index 196218157..d2952cebd 100644 --- a/test/src/test/resources/fixtures/new hydration/new-basic-hydration-with-static-args.yml +++ b/test/src/test/resources/fixtures/new hydration/new-basic-hydration-with-static-args.yml @@ -16,7 +16,12 @@ overallSchema: } type Foo { id: ID - bar: Bar @hydrated(service: "service2" field: "barById" arguments: [{name: "id" value: "barId"}]) + bar: Bar + @hydrated( + service: "service2" + field: "barById" + arguments: [{name: "id" value: "barId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-basic-hydration.yml b/test/src/test/resources/fixtures/new hydration/new-basic-hydration.yml index d0988be65..38005c049 100644 --- a/test/src/test/resources/fixtures/new hydration/new-basic-hydration.yml +++ b/test/src/test/resources/fixtures/new hydration/new-basic-hydration.yml @@ -16,8 +16,18 @@ overallSchema: } type Foo { id: ID - bar: Bar @hydrated(service: "service2" field: "barById" arguments: [{name: "id" value: "$source.barId"}]) - barLongerInput: Bar @hydrated(service: "service2" field: "barById" arguments: [{name: "id" value: "$source.fooDetails.externalBarId"}]) + bar: Bar + @hydrated( + service: "service2" + field: "barById" + arguments: [{name: "id" value: "$source.barId"}] + ) + barLongerInput: Bar + @hydrated( + service: "service2" + field: "barById" + arguments: [{name: "id" value: "$source.fooDetails.externalBarId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-batch-hydration-input-is-null.yml b/test/src/test/resources/fixtures/new hydration/new-batch-hydration-input-is-null.yml index f3a2cfef2..a1a04929e 100644 --- a/test/src/test/resources/fixtures/new hydration/new-batch-hydration-input-is-null.yml +++ b/test/src/test/resources/fixtures/new hydration/new-batch-hydration-input-is-null.yml @@ -16,7 +16,14 @@ overallSchema: } type Issue { id: ID - authors: [User] @hydrated(service: "UserService" field: "usersByIds" arguments: [{name: "ids" value: "$source.authorIds"}] identifiedBy: "id" batchSize: 2) + authors: [User] + @hydrated( + service: "UserService" + field: "usersByIds" + arguments: [{name: "ids" value: "$source.authorIds"}] + identifiedBy: "id" + batchSize: 2 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-batch-hydration-with-renamed-actor-field.yml b/test/src/test/resources/fixtures/new hydration/new-batch-hydration-with-renamed-actor-field.yml index 2a3436208..5a40a9dbf 100644 --- a/test/src/test/resources/fixtures/new hydration/new-batch-hydration-with-renamed-actor-field.yml +++ b/test/src/test/resources/fixtures/new hydration/new-batch-hydration-with-renamed-actor-field.yml @@ -16,7 +16,13 @@ overallSchema: } type Foo { id: ID - bar: [Bar] @hydrated(service: "service2" field: "barsByIdOverall" arguments: [{name: "id" value: "$source.barId"}] identifiedBy: "id") + bar: [Bar] + @hydrated( + service: "service2" + field: "barsByIdOverall" + arguments: [{name: "id" value: "$source.barId"}] + identifiedBy: "id" + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-batched-hydration-query-with-a-synthetic-field.yml b/test/src/test/resources/fixtures/new hydration/new-batched-hydration-query-with-a-synthetic-field.yml index 077721ddd..cf0cef3d0 100644 --- a/test/src/test/resources/fixtures/new hydration/new-batched-hydration-query-with-a-synthetic-field.yml +++ b/test/src/test/resources/fixtures/new hydration/new-batched-hydration-query-with-a-synthetic-field.yml @@ -20,7 +20,14 @@ overallSchema: } type Issue { id: ID - authors: [User] @hydrated(service: "service2" field: "users.usersByIds" arguments: [{name: "id" value: "$source.authorIds"}] identifiedBy: "id" batchSize: 3) + authors: [User] + @hydrated( + service: "service2" + field: "users.usersByIds" + arguments: [{name: "id" value: "$source.authorIds"}] + identifiedBy: "id" + batchSize: 3 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-batching-of-hydration-list-with-flattened-arguments.yml b/test/src/test/resources/fixtures/new hydration/new-batching-of-hydration-list-with-flattened-arguments.yml index 19665e290..f68b5584b 100644 --- a/test/src/test/resources/fixtures/new hydration/new-batching-of-hydration-list-with-flattened-arguments.yml +++ b/test/src/test/resources/fixtures/new hydration/new-batching-of-hydration-list-with-flattened-arguments.yml @@ -15,7 +15,14 @@ overallSchema: } type Issue { id: ID - authors: [User] @hydrated(service: "UserService" field: "usersByIds" arguments: [{name: "id" value: "$source.authors.authorId"}] identifiedBy: "id" batchSize: 3) + authors: [User] + @hydrated( + service: "UserService" + field: "usersByIds" + arguments: [{name: "id" value: "$source.authors.authorId"}] + identifiedBy: "id" + batchSize: 3 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-batching-of-hydration-list.yml b/test/src/test/resources/fixtures/new hydration/new-batching-of-hydration-list.yml index 0578f678d..b502ce838 100644 --- a/test/src/test/resources/fixtures/new hydration/new-batching-of-hydration-list.yml +++ b/test/src/test/resources/fixtures/new hydration/new-batching-of-hydration-list.yml @@ -15,7 +15,14 @@ overallSchema: } type Issue { id: ID - authors: [User] @hydrated(service: "UserService" field: "usersByIds" arguments: [{name: "id" value: "$source.authorIds"}] identifiedBy: "id" batchSize: 3) + authors: [User] + @hydrated( + service: "UserService" + field: "usersByIds" + arguments: [{name: "id" value: "$source.authorIds"}] + identifiedBy: "id" + batchSize: 3 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-can-generate-legacy-operation-name-on-batch-hydration-for-specific-service.yml b/test/src/test/resources/fixtures/new hydration/new-can-generate-legacy-operation-name-on-batch-hydration-for-specific-service.yml index bfc83ca34..6f9673ec0 100644 --- a/test/src/test/resources/fixtures/new hydration/new-can-generate-legacy-operation-name-on-batch-hydration-for-specific-service.yml +++ b/test/src/test/resources/fixtures/new hydration/new-can-generate-legacy-operation-name-on-batch-hydration-for-specific-service.yml @@ -16,7 +16,13 @@ overallSchema: } type Foo { id: ID - bar: [Bar] @hydrated(service: "service2" field: "barsById" arguments: [{name: "id" value: "$source.barId"}] identifiedBy: "id") + bar: [Bar] + @hydrated( + service: "service2" + field: "barsById" + arguments: [{name: "id" value: "$source.barId"}] + identifiedBy: "id" + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-can-generate-legacy-operation-name-on-batch-hydration.yml b/test/src/test/resources/fixtures/new hydration/new-can-generate-legacy-operation-name-on-batch-hydration.yml index 65d2d3511..7ccbb76d8 100644 --- a/test/src/test/resources/fixtures/new hydration/new-can-generate-legacy-operation-name-on-batch-hydration.yml +++ b/test/src/test/resources/fixtures/new hydration/new-can-generate-legacy-operation-name-on-batch-hydration.yml @@ -16,7 +16,13 @@ overallSchema: } type Foo { id: ID - bar: [Bar] @hydrated(service: "service2" field: "barsById" arguments: [{name: "id" value: "$source.barId"}] identifiedBy: "id") + bar: [Bar] + @hydrated( + service: "service2" + field: "barsById" + arguments: [{name: "id" value: "$source.barId"}] + identifiedBy: "id" + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-can-generate-legacy-operation-name-on-hydration.yml b/test/src/test/resources/fixtures/new hydration/new-can-generate-legacy-operation-name-on-hydration.yml index 6e2e3e45d..a2f2084cb 100644 --- a/test/src/test/resources/fixtures/new hydration/new-can-generate-legacy-operation-name-on-hydration.yml +++ b/test/src/test/resources/fixtures/new hydration/new-can-generate-legacy-operation-name-on-hydration.yml @@ -16,8 +16,18 @@ overallSchema: } type Foo { id: ID - bar: Bar @hydrated(service: "service2" field: "barById" arguments: [{name: "id" value: "$source.barId"}]) - barLongerInput: Bar @hydrated(service: "service2" field: "barById" arguments: [{name: "id" value: "$source.fooDetails.externalBarId"}]) + bar: Bar + @hydrated( + service: "service2" + field: "barById" + arguments: [{name: "id" value: "$source.barId"}] + ) + barLongerInput: Bar + @hydrated( + service: "service2" + field: "barById" + arguments: [{name: "id" value: "$source.fooDetails.externalBarId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-expecting-one-child-error-on-extensive-field-argument-passed-to-hydration.yml b/test/src/test/resources/fixtures/new hydration/new-expecting-one-child-error-on-extensive-field-argument-passed-to-hydration.yml index e72427242..25a808638 100644 --- a/test/src/test/resources/fixtures/new hydration/new-expecting-one-child-error-on-extensive-field-argument-passed-to-hydration.yml +++ b/test/src/test/resources/fixtures/new hydration/new-expecting-one-child-error-on-extensive-field-argument-passed-to-hydration.yml @@ -12,7 +12,14 @@ overallSchema: } type SoftwareCard @renamed(from: "Card") { id: ID - assignee: User @hydrated(service: "Users" field: "users" arguments: [{name: "accountIds" value: "$source.issue.assignee.accountId"}] identifiedBy: "accountId" batchSize: 3) + assignee: User + @hydrated( + service: "Users" + field: "users" + arguments: [{name: "accountIds" value: "$source.issue.assignee.accountId"}] + identifiedBy: "accountId" + batchSize: 3 + ) } Users: | type Query { diff --git a/test/src/test/resources/fixtures/new hydration/new-expecting-one-child-error-on-extensive-field-argument-passed-to-synthetic-hydration.yml b/test/src/test/resources/fixtures/new hydration/new-expecting-one-child-error-on-extensive-field-argument-passed-to-synthetic-hydration.yml index 095de3169..8b6b800f9 100644 --- a/test/src/test/resources/fixtures/new hydration/new-expecting-one-child-error-on-extensive-field-argument-passed-to-synthetic-hydration.yml +++ b/test/src/test/resources/fixtures/new hydration/new-expecting-one-child-error-on-extensive-field-argument-passed-to-synthetic-hydration.yml @@ -12,7 +12,14 @@ overallSchema: } type SoftwareCard @renamed(from: "Card") { id: ID - assignee: User @hydrated(service: "Users" field: "usersQuery.users" arguments: [{name: "accountIds" value: "$source.issue.assignee.accountId"}] identifiedBy: "accountId" batchSize: 3) + assignee: User + @hydrated( + service: "Users" + field: "usersQuery.users" + arguments: [{name: "accountIds" value: "$source.issue.assignee.accountId"}] + identifiedBy: "accountId" + batchSize: 3 + ) } Users: | type Query { diff --git a/test/src/test/resources/fixtures/new hydration/new-hydration-batching-returns-null.yml b/test/src/test/resources/fixtures/new hydration/new-hydration-batching-returns-null.yml index 04a622618..e3d9f445b 100644 --- a/test/src/test/resources/fixtures/new hydration/new-hydration-batching-returns-null.yml +++ b/test/src/test/resources/fixtures/new hydration/new-hydration-batching-returns-null.yml @@ -16,7 +16,12 @@ overallSchema: } type Foo { id: ID - bar: [Bar] @hydrated(service: "service2" field: "barsById" arguments: [{name: "id" value: "$source.barId"}]) + bar: [Bar] + @hydrated( + service: "service2" + field: "barsById" + arguments: [{name: "id" value: "$source.barId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-hydration-call-forwards-error.yml b/test/src/test/resources/fixtures/new hydration/new-hydration-call-forwards-error.yml index 30c7e24f3..4150ea4f1 100644 --- a/test/src/test/resources/fixtures/new hydration/new-hydration-call-forwards-error.yml +++ b/test/src/test/resources/fixtures/new hydration/new-hydration-call-forwards-error.yml @@ -16,7 +16,12 @@ overallSchema: } type Foo { id: ID - bar: Bar @hydrated(service: "service2" field: "barById" arguments: [{name: "id" value: "$source.barId"}]) + bar: Bar + @hydrated( + service: "service2" + field: "barById" + arguments: [{name: "id" value: "$source.barId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-hydration-call-over-itself-with-renamed-types.yml b/test/src/test/resources/fixtures/new hydration/new-hydration-call-over-itself-with-renamed-types.yml index 25fef885a..4693e1ae6 100644 --- a/test/src/test/resources/fixtures/new hydration/new-hydration-call-over-itself-with-renamed-types.yml +++ b/test/src/test/resources/fixtures/new hydration/new-hydration-call-over-itself-with-renamed-types.yml @@ -17,7 +17,14 @@ overallSchema: type TestingMovie @renamed(from: "Movie") { id: ID! name: String - characters: [TestingCharacter] @hydrated(service: "testing" field: "characters" arguments: [{name: "ids" value: "$source.characterIds"}] identifiedBy: "id" batchSize: 3) + characters: [TestingCharacter] + @hydrated( + service: "testing" + field: "characters" + arguments: [{name: "ids" value: "$source.characterIds"}] + identifiedBy: "id" + batchSize: 3 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-hydration-call-with-fragments-in-the-hydrated-part-and-synthetic-field.yml b/test/src/test/resources/fixtures/new hydration/new-hydration-call-with-fragments-in-the-hydrated-part-and-synthetic-field.yml index e087d5a7b..1bec9e0d0 100644 --- a/test/src/test/resources/fixtures/new hydration/new-hydration-call-with-fragments-in-the-hydrated-part-and-synthetic-field.yml +++ b/test/src/test/resources/fixtures/new hydration/new-hydration-call-with-fragments-in-the-hydrated-part-and-synthetic-field.yml @@ -20,7 +20,13 @@ overallSchema: type Issue { id: ID authorDetails: [AuthorDetail] - authors: [User] @hydrated(service: "UserService" field: "userQuery.usersByIds" arguments: [{name: "id" value: "$source.authorDetails.authorId"}] identifiedBy: "id") + authors: [User] + @hydrated( + service: "UserService" + field: "userQuery.usersByIds" + arguments: [{name: "id" value: "$source.authorDetails.authorId"}] + identifiedBy: "id" + ) } type AuthorDetail { name: String diff --git a/test/src/test/resources/fixtures/new hydration/new-hydration-call-with-fragments-in-the-hydrated-part.yml b/test/src/test/resources/fixtures/new hydration/new-hydration-call-with-fragments-in-the-hydrated-part.yml index 92233708b..d101f44b4 100644 --- a/test/src/test/resources/fixtures/new hydration/new-hydration-call-with-fragments-in-the-hydrated-part.yml +++ b/test/src/test/resources/fixtures/new hydration/new-hydration-call-with-fragments-in-the-hydrated-part.yml @@ -17,7 +17,14 @@ overallSchema: type Issue { id: ID authorDetails: [AuthorDetail] - authors: [User] @hydrated(service: "UserService" field: "usersByIds" arguments: [{name: "id" value: "$source.authorDetails.authorId"}] identifiedBy: "id" batchSize: 2) + authors: [User] + @hydrated( + service: "UserService" + field: "usersByIds" + arguments: [{name: "id" value: "$source.authorDetails.authorId"}] + identifiedBy: "id" + batchSize: 2 + ) } type AuthorDetail { name: String diff --git a/test/src/test/resources/fixtures/new hydration/new-hydration-from-field-in-interface-with-type-rename.yml b/test/src/test/resources/fixtures/new hydration/new-hydration-from-field-in-interface-with-type-rename.yml index 88d2e3b93..dfe8b85d3 100644 --- a/test/src/test/resources/fixtures/new hydration/new-hydration-from-field-in-interface-with-type-rename.yml +++ b/test/src/test/resources/fixtures/new hydration/new-hydration-from-field-in-interface-with-type-rename.yml @@ -9,7 +9,12 @@ overallSchema: type RenamedIssue @renamed(from: "Issue") { id: ID title: String - issueAuthor: RenamedUser @hydrated(service: "users" field: "user" arguments: [{name: "id" value: "$source.author.userId"}]) + issueAuthor: RenamedUser + @hydrated( + service: "users" + field: "user" + arguments: [{name: "id" value: "$source.author.userId"}] + ) } users: | type Query { diff --git a/test/src/test/resources/fixtures/new hydration/new-hydration-from-field-in-interface.yml b/test/src/test/resources/fixtures/new hydration/new-hydration-from-field-in-interface.yml index fe85cf00b..f6a37f8b9 100644 --- a/test/src/test/resources/fixtures/new hydration/new-hydration-from-field-in-interface.yml +++ b/test/src/test/resources/fixtures/new hydration/new-hydration-from-field-in-interface.yml @@ -9,7 +9,12 @@ overallSchema: type Issue { id: ID title: String - issueAuthor: User @hydrated(service: "users" field: "user" arguments: [{name: "id" value: "$source.author.userId"}]) + issueAuthor: User + @hydrated( + service: "users" + field: "user" + arguments: [{name: "id" value: "$source.author.userId"}] + ) } users: | type Query { diff --git a/test/src/test/resources/fixtures/new hydration/new-hydration-inside-a-renamed-field.yml b/test/src/test/resources/fixtures/new hydration/new-hydration-inside-a-renamed-field.yml index 4b21b5891..3e5ed19fd 100644 --- a/test/src/test/resources/fixtures/new hydration/new-hydration-inside-a-renamed-field.yml +++ b/test/src/test/resources/fixtures/new hydration/new-hydration-inside-a-renamed-field.yml @@ -15,7 +15,12 @@ overallSchema: } type Foo { id: ID! - fooBar: RenamedBar @hydrated(service: "Bar" field: "barById" arguments: [{name: "id" value: "$source.fooBarId"}]) + fooBar: RenamedBar + @hydrated( + service: "Bar" + field: "barById" + arguments: [{name: "id" value: "$source.fooBarId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-hydration-list-input.yml b/test/src/test/resources/fixtures/new hydration/new-hydration-list-input.yml index 29db61355..2ae8af322 100644 --- a/test/src/test/resources/fixtures/new hydration/new-hydration-list-input.yml +++ b/test/src/test/resources/fixtures/new hydration/new-hydration-list-input.yml @@ -16,7 +16,12 @@ overallSchema: } type Foo { id: ID - bar: [Bar] @hydrated(service: "service2" field: "barById" arguments: [{name: "id" value: "$source.barIds"}]) + bar: [Bar] + @hydrated( + service: "service2" + field: "barById" + arguments: [{name: "id" value: "$source.barIds"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-hydration-list-with-batching-forwards-error.yml b/test/src/test/resources/fixtures/new hydration/new-hydration-list-with-batching-forwards-error.yml index 9266a1d5b..a4c43ce0e 100644 --- a/test/src/test/resources/fixtures/new hydration/new-hydration-list-with-batching-forwards-error.yml +++ b/test/src/test/resources/fixtures/new hydration/new-hydration-list-with-batching-forwards-error.yml @@ -16,7 +16,12 @@ overallSchema: } type Foo { id: ID - bar: [Bar] @hydrated(service: "service2" field: "barsById" arguments: [{name: "id" value: "$source.barId"}]) + bar: [Bar] + @hydrated( + service: "service2" + field: "barsById" + arguments: [{name: "id" value: "$source.barId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-hydration-list-with-batching.yml b/test/src/test/resources/fixtures/new hydration/new-hydration-list-with-batching.yml index dc321eb76..3707c4a19 100644 --- a/test/src/test/resources/fixtures/new hydration/new-hydration-list-with-batching.yml +++ b/test/src/test/resources/fixtures/new hydration/new-hydration-list-with-batching.yml @@ -16,7 +16,13 @@ overallSchema: } type Foo { id: ID - bar: [Bar] @hydrated(service: "service2" field: "barsById" arguments: [{name: "id" value: "$source.barId"}] identifiedBy: "id") + bar: [Bar] + @hydrated( + service: "service2" + field: "barsById" + arguments: [{name: "id" value: "$source.barId"}] + identifiedBy: "id" + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-hydration-list-with-one-element.yml b/test/src/test/resources/fixtures/new hydration/new-hydration-list-with-one-element.yml index a7144fdfc..2a0e2ab77 100644 --- a/test/src/test/resources/fixtures/new hydration/new-hydration-list-with-one-element.yml +++ b/test/src/test/resources/fixtures/new hydration/new-hydration-list-with-one-element.yml @@ -16,7 +16,12 @@ overallSchema: } type Foo { id: ID - bar: [Bar] @hydrated(service: "service2" field: "barById" arguments: [{name: "id" value: "$source.barId"}]) + bar: [Bar] + @hydrated( + service: "service2" + field: "barById" + arguments: [{name: "id" value: "$source.barId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-hydration-with-interfaces-asking-typename.yml b/test/src/test/resources/fixtures/new hydration/new-hydration-with-interfaces-asking-typename.yml index 4f97a666e..7b1de6799 100644 --- a/test/src/test/resources/fixtures/new hydration/new-hydration-with-interfaces-asking-typename.yml +++ b/test/src/test/resources/fixtures/new hydration/new-hydration-with-interfaces-asking-typename.yml @@ -14,7 +14,12 @@ overallSchema: id: ID } type User implements Node { - id: ID @hydrated(service: "Issues" field: "ariById" arguments: [{name: "id" value: "$source.id"}]) + id: ID + @hydrated( + service: "Issues" + field: "ariById" + arguments: [{name: "id" value: "$source.id"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-hydration-with-interfaces-no-source-id.yml b/test/src/test/resources/fixtures/new hydration/new-hydration-with-interfaces-no-source-id.yml index 6b892522b..f3daff4a2 100644 --- a/test/src/test/resources/fixtures/new hydration/new-hydration-with-interfaces-no-source-id.yml +++ b/test/src/test/resources/fixtures/new hydration/new-hydration-with-interfaces-no-source-id.yml @@ -14,7 +14,12 @@ overallSchema: id: ID } type User implements Node { - id: ID @hydrated(service: "Issues" field: "idByAri" arguments: [{name: "id" value: "$source.ari"}]) + id: ID + @hydrated( + service: "Issues" + field: "idByAri" + arguments: [{name: "id" value: "$source.ari"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-hydration-with-interfaces.yml b/test/src/test/resources/fixtures/new hydration/new-hydration-with-interfaces.yml index 4888c5e95..a7646d662 100644 --- a/test/src/test/resources/fixtures/new hydration/new-hydration-with-interfaces.yml +++ b/test/src/test/resources/fixtures/new hydration/new-hydration-with-interfaces.yml @@ -14,7 +14,12 @@ overallSchema: id: ID } type User implements Node { - id: ID @hydrated(service: "Issues" field: "idByAri" arguments: [{name: "id" value: "$source.ari"}]) + id: ID + @hydrated( + service: "Issues" + field: "idByAri" + arguments: [{name: "id" value: "$source.ari"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-hydration-with-more-interfaces.yml b/test/src/test/resources/fixtures/new hydration/new-hydration-with-more-interfaces.yml index 2ae3d798a..3bc35f40b 100644 --- a/test/src/test/resources/fixtures/new hydration/new-hydration-with-more-interfaces.yml +++ b/test/src/test/resources/fixtures/new hydration/new-hydration-with-more-interfaces.yml @@ -12,13 +12,23 @@ overallSchema: id: ID } type Troll implements Node { - id: ID @hydrated(service: "Issues" field: "trollName" arguments: [{name: "id" value: "$source.id"}]) + id: ID + @hydrated( + service: "Issues" + field: "trollName" + arguments: [{name: "id" value: "$source.id"}] + ) } interface Node { id: ID } type User implements Node { - id: ID @hydrated(service: "Issues" field: "ariById" arguments: [{name: "id" value: "$source.id"}]) + id: ID + @hydrated( + service: "Issues" + field: "ariById" + arguments: [{name: "id" value: "$source.id"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-hydration-works-when-an-ancestor-field-has-been-renamed.yml b/test/src/test/resources/fixtures/new hydration/new-hydration-works-when-an-ancestor-field-has-been-renamed.yml index 37125ae8b..c6dcda8e7 100644 --- a/test/src/test/resources/fixtures/new hydration/new-hydration-works-when-an-ancestor-field-has-been-renamed.yml +++ b/test/src/test/resources/fixtures/new hydration/new-hydration-works-when-an-ancestor-field-has-been-renamed.yml @@ -7,7 +7,12 @@ overallSchema: id: ID } type DevOpsRelationship @renamed(from: "Relationship") { - devOpsIssue: DevOpsIssue @hydrated(service: "IssueService" field: "issue" arguments: [{name: "id" value: "$source.issueId"}]) + devOpsIssue: DevOpsIssue + @hydrated( + service: "IssueService" + field: "issue" + arguments: [{name: "id" value: "$source.issueId"}] + ) } type DevOpsRelationshipConnection @renamed(from: "RelationshipConnection") { nodes: [DevOpsRelationship] diff --git a/test/src/test/resources/fixtures/new hydration/new-nested-list-hydration-under-a-renamed-top-level-field.yml b/test/src/test/resources/fixtures/new hydration/new-nested-list-hydration-under-a-renamed-top-level-field.yml index d3ccb5e17..7f9c52bc1 100644 --- a/test/src/test/resources/fixtures/new hydration/new-nested-list-hydration-under-a-renamed-top-level-field.yml +++ b/test/src/test/resources/fixtures/new hydration/new-nested-list-hydration-under-a-renamed-top-level-field.yml @@ -11,14 +11,29 @@ overallSchema: space(id: ID): Space } type FooService @renamed(from: "Service") { - otherServices: Connection @hydrated(service: "Foo" field: "connection" arguments: [{name: "id" value: "$source.id"}]) + otherServices: Connection + @hydrated( + service: "Foo" + field: "connection" + arguments: [{name: "id" value: "$source.id"}] + ) } type Connection { edges: [Edge] - nodes: [Node] @hydrated(service: "Foo" field: "node" arguments: [{name: "id" value: "$source.edges.node"}]) + nodes: [Node] + @hydrated( + service: "Foo" + field: "node" + arguments: [{name: "id" value: "$source.edges.node"}] + ) } type Node { - space: Space @hydrated(service: "Foo" field: "space" arguments: [{name: "id" value: "$source.id"}]) + space: Space + @hydrated( + service: "Foo" + field: "space" + arguments: [{name: "id" value: "$source.id"}] + ) id: ID } type Space { @@ -26,7 +41,12 @@ overallSchema: name: String } type Edge { - node: Node @hydrated(service: "Foo" field: "node" arguments: [{name: "id" value: "$source.node"}]) + node: Node + @hydrated( + service: "Foo" + field: "node" + arguments: [{name: "id" value: "$source.node"}] + ) name: String id: ID } diff --git a/test/src/test/resources/fixtures/new hydration/new-one-hydration-call-with-fragments-defined.yml b/test/src/test/resources/fixtures/new hydration/new-one-hydration-call-with-fragments-defined.yml index 723a10cd9..882b7ff62 100644 --- a/test/src/test/resources/fixtures/new hydration/new-one-hydration-call-with-fragments-defined.yml +++ b/test/src/test/resources/fixtures/new hydration/new-one-hydration-call-with-fragments-defined.yml @@ -16,8 +16,18 @@ overallSchema: } type Foo { id: ID - bar: Bar @hydrated(service: "service2" field: "barById" arguments: [{name: "id" value: "$source.barId"}]) - barLongerInput: Bar @hydrated(service: "service2" field: "barById" arguments: [{name: "id" value: "$source.fooDetails.externalBarId"}]) + bar: Bar + @hydrated( + service: "service2" + field: "barById" + arguments: [{name: "id" value: "$source.barId"}] + ) + barLongerInput: Bar + @hydrated( + service: "service2" + field: "barById" + arguments: [{name: "id" value: "$source.fooDetails.externalBarId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-one-hydration-call-with-input-value-having-longer-path.yml b/test/src/test/resources/fixtures/new hydration/new-one-hydration-call-with-input-value-having-longer-path.yml index 0a01a3d31..3de9645c0 100644 --- a/test/src/test/resources/fixtures/new hydration/new-one-hydration-call-with-input-value-having-longer-path.yml +++ b/test/src/test/resources/fixtures/new hydration/new-one-hydration-call-with-input-value-having-longer-path.yml @@ -16,8 +16,18 @@ overallSchema: } type Foo { id: ID - bar: Bar @hydrated(service: "service2" field: "barById" arguments: [{name: "id" value: "$source.barId"}]) - barLongerInput: Bar @hydrated(service: "service2" field: "barById" arguments: [{name: "id" value: "$source.fooDetails.externalBarId"}]) + bar: Bar + @hydrated( + service: "service2" + field: "barById" + arguments: [{name: "id" value: "$source.barId"}] + ) + barLongerInput: Bar + @hydrated( + service: "service2" + field: "barById" + arguments: [{name: "id" value: "$source.fooDetails.externalBarId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-one-hydration-call-with-longer-path-and-same-named-overall-field.yml b/test/src/test/resources/fixtures/new hydration/new-one-hydration-call-with-longer-path-and-same-named-overall-field.yml index 4e9a13ccc..822649e92 100644 --- a/test/src/test/resources/fixtures/new hydration/new-one-hydration-call-with-longer-path-and-same-named-overall-field.yml +++ b/test/src/test/resources/fixtures/new hydration/new-one-hydration-call-with-longer-path-and-same-named-overall-field.yml @@ -17,7 +17,14 @@ overallSchema: type Issue { id: ID authorDetails: [AuthorDetail] - authors: [User] @hydrated(service: "UserService" field: "usersByIds" arguments: [{name: "id" value: "$source.authorDetails.authorId"}] identifiedBy: "id" batchSize: 2) + authors: [User] + @hydrated( + service: "UserService" + field: "usersByIds" + arguments: [{name: "id" value: "$source.authorDetails.authorId"}] + identifiedBy: "id" + batchSize: 2 + ) } type AuthorDetail { name: String diff --git a/test/src/test/resources/fixtures/new hydration/new-one-hydration-call-with-longer-path-arguments-and-merged-fields.yml b/test/src/test/resources/fixtures/new hydration/new-one-hydration-call-with-longer-path-arguments-and-merged-fields.yml index a9cc6d695..38abed94d 100644 --- a/test/src/test/resources/fixtures/new hydration/new-one-hydration-call-with-longer-path-arguments-and-merged-fields.yml +++ b/test/src/test/resources/fixtures/new hydration/new-one-hydration-call-with-longer-path-arguments-and-merged-fields.yml @@ -16,7 +16,14 @@ overallSchema: } type Issue { id: ID - authors: [User] @hydrated(service: "UserService" field: "usersByIds" arguments: [{name: "id" value: "$source.authors.authorId"}] identifiedBy: "id" batchSize: 2) + authors: [User] + @hydrated( + service: "UserService" + field: "usersByIds" + arguments: [{name: "id" value: "$source.authors.authorId"}] + identifiedBy: "id" + batchSize: 2 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-one-hydration-call-with-variables-defined.yml b/test/src/test/resources/fixtures/new hydration/new-one-hydration-call-with-variables-defined.yml index ba60ff0c8..6a0107878 100644 --- a/test/src/test/resources/fixtures/new hydration/new-one-hydration-call-with-variables-defined.yml +++ b/test/src/test/resources/fixtures/new hydration/new-one-hydration-call-with-variables-defined.yml @@ -16,8 +16,18 @@ overallSchema: } type Foo { id: ID - bar: Bar @hydrated(service: "service2" field: "barById" arguments: [{name: "id" value: "$source.barId"}]) - barLongerInput: Bar @hydrated(service: "service2" field: "barById" arguments: [{name: "id" value: "$source.fooDetails.externalBarId"}]) + bar: Bar + @hydrated( + service: "service2" + field: "barById" + arguments: [{name: "id" value: "$source.barId"}] + ) + barLongerInput: Bar + @hydrated( + service: "service2" + field: "barById" + arguments: [{name: "id" value: "$source.fooDetails.externalBarId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-one-synthetic-hydration-call-with-longer-path-and-same-named-overall-field.yml b/test/src/test/resources/fixtures/new hydration/new-one-synthetic-hydration-call-with-longer-path-and-same-named-overall-field.yml index 75d0db91c..033032bea 100644 --- a/test/src/test/resources/fixtures/new hydration/new-one-synthetic-hydration-call-with-longer-path-and-same-named-overall-field.yml +++ b/test/src/test/resources/fixtures/new hydration/new-one-synthetic-hydration-call-with-longer-path-and-same-named-overall-field.yml @@ -20,7 +20,14 @@ overallSchema: type Issue { id: ID authorDetails: [AuthorDetail] - authors: [User] @hydrated(service: "UserService" field: "usersQuery.usersByIds" arguments: [{name: "id" value: "$source.authorDetails.authorId"}] identifiedBy: "id" batchSize: 2) + authors: [User] + @hydrated( + service: "UserService" + field: "usersQuery.usersByIds" + arguments: [{name: "id" value: "$source.authorDetails.authorId"}] + identifiedBy: "id" + batchSize: 2 + ) } type AuthorDetail { name: String diff --git a/test/src/test/resources/fixtures/new hydration/new-one-synthetic-hydration-call-with-longer-path-arguments-and-merged-fields-and-renamed-type.yml b/test/src/test/resources/fixtures/new hydration/new-one-synthetic-hydration-call-with-longer-path-arguments-and-merged-fields-and-renamed-type.yml index 404803891..774fde7f9 100644 --- a/test/src/test/resources/fixtures/new hydration/new-one-synthetic-hydration-call-with-longer-path-arguments-and-merged-fields-and-renamed-type.yml +++ b/test/src/test/resources/fixtures/new hydration/new-one-synthetic-hydration-call-with-longer-path-arguments-and-merged-fields-and-renamed-type.yml @@ -19,7 +19,14 @@ overallSchema: } type Issue { id: ID - authors: [RenamedUser] @hydrated(service: "UserService" field: "usersQuery.usersByIds" arguments: [{name: "id" value: "$source.authors.authorId"}] identifiedBy: "id" batchSize: 2) + authors: [RenamedUser] + @hydrated( + service: "UserService" + field: "usersQuery.usersByIds" + arguments: [{name: "id" value: "$source.authors.authorId"}] + identifiedBy: "id" + batchSize: 2 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-query-with-hydrated-interfaces-work-as-expected.yml b/test/src/test/resources/fixtures/new hydration/new-query-with-hydrated-interfaces-work-as-expected.yml index e40545065..fca3f62da 100644 --- a/test/src/test/resources/fixtures/new hydration/new-query-with-hydrated-interfaces-work-as-expected.yml +++ b/test/src/test/resources/fixtures/new hydration/new-query-with-hydrated-interfaces-work-as-expected.yml @@ -10,21 +10,36 @@ overallSchema: } interface Pet { name: String - owners: [Owner] @hydrated(service: "OwnerService" field: "ownerById" arguments: [{name: "id" value: "$source.ownerIds"}]) + owners: [Owner] + @hydrated( + service: "OwnerService" + field: "ownerById" + arguments: [{name: "id" value: "$source.ownerIds"}] + ) collar: Collar collarToRenamed: Collar @renamed(from: "collar") } type Cat implements Pet { name: String wearsBell: Boolean - owners: [Owner] @hydrated(service: "OwnerService" field: "ownerById" arguments: [{name: "id" value: "$source.ownerIds"}]) + owners: [Owner] + @hydrated( + service: "OwnerService" + field: "ownerById" + arguments: [{name: "id" value: "$source.ownerIds"}] + ) collar: Collar collarToRenamed: Collar @renamed(from: "collar") } type Dog implements Pet { name: String wearsCollar: Boolean - owners: [Owner] @hydrated(service: "OwnerService" field: "ownerById" arguments: [{name: "id" value: "$source.ownerIds"}]) + owners: [Owner] + @hydrated( + service: "OwnerService" + field: "ownerById" + arguments: [{name: "id" value: "$source.ownerIds"}] + ) collar: Collar collarToRenamed: Collar @renamed(from: "collar") } diff --git a/test/src/test/resources/fixtures/new hydration/new-query-with-hydration-that-fail-with-errors-are-reflected-in-the-result.yml b/test/src/test/resources/fixtures/new hydration/new-query-with-hydration-that-fail-with-errors-are-reflected-in-the-result.yml index e86ba8420..9fc1b7bbd 100644 --- a/test/src/test/resources/fixtures/new hydration/new-query-with-hydration-that-fail-with-errors-are-reflected-in-the-result.yml +++ b/test/src/test/resources/fixtures/new hydration/new-query-with-hydration-that-fail-with-errors-are-reflected-in-the-result.yml @@ -9,7 +9,12 @@ overallSchema: } type Bar { name: String - nestedBar: Bar @hydrated(service: "Bar" field: "barById" arguments: [{name: "id" value: "$source.nestedBarId"}]) + nestedBar: Bar + @hydrated( + service: "Bar" + field: "barById" + arguments: [{name: "id" value: "$source.nestedBarId"}] + ) } Foo: | type Query { @@ -17,7 +22,12 @@ overallSchema: } type Foo { name: String - bar: Bar @hydrated(service: "Bar" field: "barById" arguments: [{name: "id" value: "$source.barId"}]) + bar: Bar + @hydrated( + service: "Bar" + field: "barById" + arguments: [{name: "id" value: "$source.barId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-query-with-synthetic-hydration-that-fail-with-errors-are-reflected-in-the-result.yml b/test/src/test/resources/fixtures/new hydration/new-query-with-synthetic-hydration-that-fail-with-errors-are-reflected-in-the-result.yml index 2a81b5205..964645098 100644 --- a/test/src/test/resources/fixtures/new hydration/new-query-with-synthetic-hydration-that-fail-with-errors-are-reflected-in-the-result.yml +++ b/test/src/test/resources/fixtures/new hydration/new-query-with-synthetic-hydration-that-fail-with-errors-are-reflected-in-the-result.yml @@ -12,7 +12,12 @@ overallSchema: } type Bar { name: String - nestedBar: Bar @hydrated(service: "Bar" field: "barQuery.barById" arguments: [{name: "id" value: "$source.nestedBarId"}]) + nestedBar: Bar + @hydrated( + service: "Bar" + field: "barQuery.barById" + arguments: [{name: "id" value: "$source.nestedBarId"}] + ) } Foo: | type Query { @@ -20,7 +25,12 @@ overallSchema: } type Foo { name: String - bar: Bar @hydrated(service: "Bar" field: "barQuery.barById" arguments: [{name: "id" value: "$source.barId"}]) + bar: Bar + @hydrated( + service: "Bar" + field: "barQuery.barById" + arguments: [{name: "id" value: "$source.barId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-query-with-three-nested-hydrations-and-simple-data-and-lots-of-renames.yml b/test/src/test/resources/fixtures/new hydration/new-query-with-three-nested-hydrations-and-simple-data-and-lots-of-renames.yml index 9fc0811bb..9be5de8bc 100644 --- a/test/src/test/resources/fixtures/new hydration/new-query-with-three-nested-hydrations-and-simple-data-and-lots-of-renames.yml +++ b/test/src/test/resources/fixtures/new hydration/new-query-with-three-nested-hydrations-and-simple-data-and-lots-of-renames.yml @@ -10,7 +10,13 @@ overallSchema: type Bar { barId: ID barName: String @renamed(from: "name") - nestedBar: Bar @hydrated(service: "Bar" field: "barsById" arguments: [{name: "id" value: "$source.nestedBarId"}] identifiedBy: "barId") + nestedBar: Bar + @hydrated( + service: "Bar" + field: "barsById" + arguments: [{name: "id" value: "$source.nestedBarId"}] + identifiedBy: "barId" + ) barDetails: BarDetails @renamed(from: "details") } type BarDetails @renamed(from: "Details") { @@ -27,7 +33,14 @@ overallSchema: } type Fooz @renamed(from: "Foo") { fooDetails: FooDetails @renamed(from: "details") - bar: Bar @hydrated(service: "Bar" field: "barsById" arguments: [{name: "id" value: "$source.barId"}] identifiedBy: "barId" batchSize: 2) + bar: Bar + @hydrated( + service: "Bar" + field: "barsById" + arguments: [{name: "id" value: "$source.barId"}] + identifiedBy: "barId" + batchSize: 2 + ) } type FooDetails @renamed(from: "Details") { fooName: String @renamed(from: "name") diff --git a/test/src/test/resources/fixtures/new hydration/new-query-with-three-nested-hydrations-and-simple-data.yml b/test/src/test/resources/fixtures/new hydration/new-query-with-three-nested-hydrations-and-simple-data.yml index a471a0d3d..3dce28483 100644 --- a/test/src/test/resources/fixtures/new hydration/new-query-with-three-nested-hydrations-and-simple-data.yml +++ b/test/src/test/resources/fixtures/new hydration/new-query-with-three-nested-hydrations-and-simple-data.yml @@ -10,7 +10,13 @@ overallSchema: type Bar { barId: ID name: String - nestedBar: Bar @hydrated(service: "Bar" field: "barsById" arguments: [{name: "id" value: "$source.nestedBarId"}] identifiedBy: "barId") + nestedBar: Bar + @hydrated( + service: "Bar" + field: "barsById" + arguments: [{name: "id" value: "$source.nestedBarId"}] + identifiedBy: "barId" + ) } Foo: | type Query { @@ -18,7 +24,14 @@ overallSchema: } type Foo { name: String - bar: Bar @hydrated(service: "Bar" field: "barsById" arguments: [{name: "id" value: "$source.barId"}] identifiedBy: "barId" batchSize: 2) + bar: Bar + @hydrated( + service: "Bar" + field: "barsById" + arguments: [{name: "id" value: "$source.barId"}] + identifiedBy: "barId" + batchSize: 2 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-query-with-three-nested-hydrations-and-synthetic-fields.yml b/test/src/test/resources/fixtures/new hydration/new-query-with-three-nested-hydrations-and-synthetic-fields.yml index 262e0e107..7090c2b87 100644 --- a/test/src/test/resources/fixtures/new hydration/new-query-with-three-nested-hydrations-and-synthetic-fields.yml +++ b/test/src/test/resources/fixtures/new hydration/new-query-with-three-nested-hydrations-and-synthetic-fields.yml @@ -13,7 +13,13 @@ overallSchema: type Bar { barId: ID name: String - nestedBar: Bar @hydrated(service: "Bar" field: "barsQuery.barsById" arguments: [{ name: "id" value: "$source.nestedBarId"}] identifiedBy: "barId") + nestedBar: Bar + @hydrated( + service: "Bar" + field: "barsQuery.barsById" + arguments: [{ name: "id" value: "$source.nestedBarId"}] + identifiedBy: "barId" + ) } Foo: | type Query { @@ -21,7 +27,14 @@ overallSchema: } type Foo { name: String - bar: Bar @hydrated(service: "Bar" field: "barsQuery.barsById" arguments: [{ name: "id" value: "$source.barId"}] identifiedBy: "barId" batchSize: 2) + bar: Bar + @hydrated( + service: "Bar" + field: "barsQuery.barsById" + arguments: [{ name: "id" value: "$source.barId"}] + identifiedBy: "barId" + batchSize: 2 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-query-with-three-nested-hydrations.yml b/test/src/test/resources/fixtures/new hydration/new-query-with-three-nested-hydrations.yml index 5baa7377e..810c46b64 100644 --- a/test/src/test/resources/fixtures/new hydration/new-query-with-three-nested-hydrations.yml +++ b/test/src/test/resources/fixtures/new hydration/new-query-with-three-nested-hydrations.yml @@ -10,7 +10,13 @@ overallSchema: type Bar { barId: ID name: String - nestedBar: Bar @hydrated(service: "Bar" field: "barsById" arguments: [{name: "id" value: "$source.nestedBarId"}] identifiedBy: "barId") + nestedBar: Bar + @hydrated( + service: "Bar" + field: "barsById" + arguments: [{name: "id" value: "$source.nestedBarId"}] + identifiedBy: "barId" + ) } Foo: | type Query { @@ -18,7 +24,14 @@ overallSchema: } type Foo { name: String - bar: Bar @hydrated(service: "Bar" field: "barsById" arguments: [{name: "id" value: "$source.barId"}] identifiedBy: "barId" batchSize: 2) + bar: Bar + @hydrated( + service: "Bar" + field: "barsById" + arguments: [{name: "id" value: "$source.barId"}] + identifiedBy: "barId" + batchSize: 2 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-renamed-and-hydrated-query-using-same-underlying-source.yml b/test/src/test/resources/fixtures/new hydration/new-renamed-and-hydrated-query-using-same-underlying-source.yml index d10b0576f..13b7e32e8 100644 --- a/test/src/test/resources/fixtures/new hydration/new-renamed-and-hydrated-query-using-same-underlying-source.yml +++ b/test/src/test/resources/fixtures/new hydration/new-renamed-and-hydrated-query-using-same-underlying-source.yml @@ -9,7 +9,12 @@ overallSchema: } type Foo { renamedField: String @renamed(from: "issue.field") - details: [Detail] @hydrated(service: "Foo" field: "detail" arguments: [{name: "detailId" value: "$source.issue.fooId"}]) + details: [Detail] + @hydrated( + service: "Foo" + field: "detail" + arguments: [{name: "detailId" value: "$source.issue.fooId"}] + ) } type Detail { detailId: ID! diff --git a/test/src/test/resources/fixtures/new hydration/new-repeated-hydrated-fields-on-the-same-level-overlapping-fields-in-the-query.yml b/test/src/test/resources/fixtures/new hydration/new-repeated-hydrated-fields-on-the-same-level-overlapping-fields-in-the-query.yml index ab0fe39ba..c92c7bfce 100644 --- a/test/src/test/resources/fixtures/new hydration/new-repeated-hydrated-fields-on-the-same-level-overlapping-fields-in-the-query.yml +++ b/test/src/test/resources/fixtures/new hydration/new-repeated-hydrated-fields-on-the-same-level-overlapping-fields-in-the-query.yml @@ -8,7 +8,12 @@ overallSchema: issue(issueId: ID): Issue } type Foo { - issue: Issue @hydrated(service: "Foo" field: "issue" arguments: [{name: "issueId" value: "$source.issueId"}]) + issue: Issue + @hydrated( + service: "Foo" + field: "issue" + arguments: [{name: "issueId" value: "$source.issueId"}] + ) } type Issue { id: ID diff --git a/test/src/test/resources/fixtures/new hydration/new-repeated-hydrated-fields-on-the-same-level-when-using-batch-hydration.yml b/test/src/test/resources/fixtures/new hydration/new-repeated-hydrated-fields-on-the-same-level-when-using-batch-hydration.yml index 7fc852738..44bbf1db5 100644 --- a/test/src/test/resources/fixtures/new hydration/new-repeated-hydrated-fields-on-the-same-level-when-using-batch-hydration.yml +++ b/test/src/test/resources/fixtures/new hydration/new-repeated-hydrated-fields-on-the-same-level-when-using-batch-hydration.yml @@ -8,7 +8,12 @@ overallSchema: issues(issueIds: [ID!]): [Issue!] } type Foo { - issue: Issue @hydrated(service: "Foo" field: "issues" arguments: [{name: "issueIds" value: "$source.issueId"}]) + issue: Issue + @hydrated( + service: "Foo" + field: "issues" + arguments: [{name: "issueIds" value: "$source.issueId"}] + ) } type Issue { id: ID diff --git a/test/src/test/resources/fixtures/new hydration/new-repeated-hydrated-fields-on-the-same-level.yml b/test/src/test/resources/fixtures/new hydration/new-repeated-hydrated-fields-on-the-same-level.yml index f0797319b..206bb928a 100644 --- a/test/src/test/resources/fixtures/new hydration/new-repeated-hydrated-fields-on-the-same-level.yml +++ b/test/src/test/resources/fixtures/new hydration/new-repeated-hydrated-fields-on-the-same-level.yml @@ -8,7 +8,12 @@ overallSchema: issue(issueId: ID): Issue } type Foo { - issue: Issue @hydrated(service: "Foo" field: "issue" arguments: [{name: "issueId" value: "$source.issueId"}]) + issue: Issue + @hydrated( + service: "Foo" + field: "issue" + arguments: [{name: "issueId" value: "$source.issueId"}] + ) } type Issue { id: ID diff --git a/test/src/test/resources/fixtures/new hydration/new-same-source-for-2-hydrations.yml b/test/src/test/resources/fixtures/new hydration/new-same-source-for-2-hydrations.yml index 2e5549a5a..0c86f5323 100644 --- a/test/src/test/resources/fixtures/new hydration/new-same-source-for-2-hydrations.yml +++ b/test/src/test/resources/fixtures/new hydration/new-same-source-for-2-hydrations.yml @@ -9,8 +9,18 @@ overallSchema: issue(issueId: ID): Issue } type Foo { - issue: Issue @hydrated(service: "Foo" field: "issue" arguments: [{name: "issueId" value: "$source.fooId"}]) - detail: Detail @hydrated(service: "Foo" field: "detail" arguments: [{name: "detailId" value: "$source.fooId"}]) + issue: Issue + @hydrated( + service: "Foo" + field: "issue" + arguments: [{name: "issueId" value: "$source.fooId"}] + ) + detail: Detail + @hydrated( + service: "Foo" + field: "detail" + arguments: [{name: "detailId" value: "$source.fooId"}] + ) } type Detail { detailId: ID! diff --git a/test/src/test/resources/fixtures/new hydration/new-same-source-for-2-nested-hydrations-and-a-rename.yml b/test/src/test/resources/fixtures/new hydration/new-same-source-for-2-nested-hydrations-and-a-rename.yml index 90984bf6f..936d44208 100644 --- a/test/src/test/resources/fixtures/new hydration/new-same-source-for-2-nested-hydrations-and-a-rename.yml +++ b/test/src/test/resources/fixtures/new hydration/new-same-source-for-2-nested-hydrations-and-a-rename.yml @@ -10,8 +10,18 @@ overallSchema: } type Foo { renamedField: String @renamed(from: "issue.field") - issue: Issue @hydrated(service: "Foo" field: "issue" arguments: [{name: "issueId" value: "$source.issue.fooId"}]) - detail: Detail @hydrated(service: "Foo" field: "detail" arguments: [{name: "detailId" value: "$source.issue.fooId"}]) + issue: Issue + @hydrated( + service: "Foo" + field: "issue" + arguments: [{name: "issueId" value: "$source.issue.fooId"}] + ) + detail: Detail + @hydrated( + service: "Foo" + field: "detail" + arguments: [{name: "detailId" value: "$source.issue.fooId"}] + ) } type Detail { detailId: ID! diff --git a/test/src/test/resources/fixtures/new hydration/new-simple-hydration-query-with-a-synthetic-field.yml b/test/src/test/resources/fixtures/new hydration/new-simple-hydration-query-with-a-synthetic-field.yml index e67cc1b7e..5430e87de 100644 --- a/test/src/test/resources/fixtures/new hydration/new-simple-hydration-query-with-a-synthetic-field.yml +++ b/test/src/test/resources/fixtures/new hydration/new-simple-hydration-query-with-a-synthetic-field.yml @@ -19,7 +19,12 @@ overallSchema: } type Issue { id: ID - project: Project @hydrated(service: "service2" field: "projects.project" arguments: [{name: "id" value: "$source.projectId"}]) + project: Project + @hydrated( + service: "service2" + field: "projects.project" + arguments: [{name: "id" value: "$source.projectId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-simple-synthetic-hydration-with-one-service-and-type-renaming.yml b/test/src/test/resources/fixtures/new hydration/new-simple-synthetic-hydration-with-one-service-and-type-renaming.yml index 9276ece9c..9152598b8 100644 --- a/test/src/test/resources/fixtures/new hydration/new-simple-synthetic-hydration-with-one-service-and-type-renaming.yml +++ b/test/src/test/resources/fixtures/new hydration/new-simple-synthetic-hydration-with-one-service-and-type-renaming.yml @@ -20,7 +20,14 @@ overallSchema: type Movie { id: ID! name: String - character: TestingCharacter @hydrated(service: "testing" field: "tests.character" arguments: [{name: "id" value: "$source.characterId"}] identifiedBy: "id" batchSize: 3) + character: TestingCharacter + @hydrated( + service: "testing" + field: "tests.character" + arguments: [{name: "id" value: "$source.characterId"}] + identifiedBy: "id" + batchSize: 3 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-synthetic-hydration-batching-returns-null.yml b/test/src/test/resources/fixtures/new hydration/new-synthetic-hydration-batching-returns-null.yml index 493d0b376..ae6ed5066 100644 --- a/test/src/test/resources/fixtures/new hydration/new-synthetic-hydration-batching-returns-null.yml +++ b/test/src/test/resources/fixtures/new hydration/new-synthetic-hydration-batching-returns-null.yml @@ -19,7 +19,12 @@ overallSchema: } type Foo { id: ID - bar: [Bar] @hydrated(service: "service2" field: "barsQuery.barsById" arguments: [{name: "id" value: "$source.barId"}]) + bar: [Bar] + @hydrated( + service: "service2" + field: "barsQuery.barsById" + arguments: [{name: "id" value: "$source.barId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-synthetic-hydration-call-over-itself-within-renamed-types.yml b/test/src/test/resources/fixtures/new hydration/new-synthetic-hydration-call-over-itself-within-renamed-types.yml index f60ff3b0c..d41bd22ee 100644 --- a/test/src/test/resources/fixtures/new hydration/new-synthetic-hydration-call-over-itself-within-renamed-types.yml +++ b/test/src/test/resources/fixtures/new hydration/new-synthetic-hydration-call-over-itself-within-renamed-types.yml @@ -21,7 +21,14 @@ overallSchema: type TestingMovie @renamed(from: "Movie") { id: ID! name: String - characters: [TestingCharacter] @hydrated(service: "testing" field: "tests.characters" arguments: [{name: "ids" value: "$source.characterIds"}] identifiedBy: "id" batchSize: 3) + characters: [TestingCharacter] + @hydrated( + service: "testing" + field: "tests.characters" + arguments: [{name: "ids" value: "$source.characterIds"}] + identifiedBy: "id" + batchSize: 3 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-synthetic-hydration-forwards-error.yml b/test/src/test/resources/fixtures/new hydration/new-synthetic-hydration-forwards-error.yml index 457af8bb2..cd889ba37 100644 --- a/test/src/test/resources/fixtures/new hydration/new-synthetic-hydration-forwards-error.yml +++ b/test/src/test/resources/fixtures/new hydration/new-synthetic-hydration-forwards-error.yml @@ -19,7 +19,12 @@ overallSchema: } type Foo { id: ID - bar: Bar @hydrated(service: "service2" field: "barsQuery.barById" arguments: [{name: "id" value: "$source.barId"}]) + bar: Bar + @hydrated( + service: "service2" + field: "barsQuery.barById" + arguments: [{name: "id" value: "$source.barId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-synthetic-hydration-input-is-empty-list.yml b/test/src/test/resources/fixtures/new hydration/new-synthetic-hydration-input-is-empty-list.yml index daf101a0e..6e9c621ce 100644 --- a/test/src/test/resources/fixtures/new hydration/new-synthetic-hydration-input-is-empty-list.yml +++ b/test/src/test/resources/fixtures/new hydration/new-synthetic-hydration-input-is-empty-list.yml @@ -19,7 +19,14 @@ overallSchema: } type Issue { id: ID - authors: [User] @hydrated(service: "UserService" field: "usersQuery.usersByIds" arguments: [{name: "ids" value: "$source.authorIds"}] identifiedBy: "id" batchSize: 2) + authors: [User] + @hydrated( + service: "UserService" + field: "usersQuery.usersByIds" + arguments: [{name: "ids" value: "$source.authorIds"}] + identifiedBy: "id" + batchSize: 2 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-synthetic-hydration-input-is-null.yml b/test/src/test/resources/fixtures/new hydration/new-synthetic-hydration-input-is-null.yml index 746cfd302..4b599d014 100644 --- a/test/src/test/resources/fixtures/new hydration/new-synthetic-hydration-input-is-null.yml +++ b/test/src/test/resources/fixtures/new hydration/new-synthetic-hydration-input-is-null.yml @@ -19,7 +19,14 @@ overallSchema: } type Issue { id: ID - authors: [User] @hydrated(service: "UserService" field: "usersQuery.usersByIds" arguments: [{name: "ids" value: "$source.authorIds"}] identifiedBy: "id" batchSize: 2) + authors: [User] + @hydrated( + service: "UserService" + field: "usersQuery.usersByIds" + arguments: [{name: "ids" value: "$source.authorIds"}] + identifiedBy: "id" + batchSize: 2 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-synthetic-hydration-list-with-batching-forwards-error.yml b/test/src/test/resources/fixtures/new hydration/new-synthetic-hydration-list-with-batching-forwards-error.yml index e18071563..b8dbe4d45 100644 --- a/test/src/test/resources/fixtures/new hydration/new-synthetic-hydration-list-with-batching-forwards-error.yml +++ b/test/src/test/resources/fixtures/new hydration/new-synthetic-hydration-list-with-batching-forwards-error.yml @@ -19,7 +19,12 @@ overallSchema: } type Foo { id: ID - bar: [Bar] @hydrated(service: "service2" field: "barsQuery.barsById" arguments: [{name: "id" value: "$source.barId"}]) + bar: [Bar] + @hydrated( + service: "service2" + field: "barsQuery.barsById" + arguments: [{name: "id" value: "$source.barId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-synthetic-hydration-with-renamed-type.yml b/test/src/test/resources/fixtures/new hydration/new-synthetic-hydration-with-renamed-type.yml index b8143b258..95722aff5 100644 --- a/test/src/test/resources/fixtures/new hydration/new-synthetic-hydration-with-renamed-type.yml +++ b/test/src/test/resources/fixtures/new hydration/new-synthetic-hydration-with-renamed-type.yml @@ -18,7 +18,12 @@ overallSchema: } type Foo { id: ID! - fooBar: Bar @hydrated(service: "Bar" field: "bars.barById" arguments: [{name: "id" value: "$source.fooBarId"}]) + fooBar: Bar + @hydrated( + service: "Bar" + field: "bars.barById" + arguments: [{name: "id" value: "$source.fooBarId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-synthetic-hydration-works-when-an-ancestor-field-has-been-renamed.yml b/test/src/test/resources/fixtures/new hydration/new-synthetic-hydration-works-when-an-ancestor-field-has-been-renamed.yml index 2246d3b95..c0966c55e 100644 --- a/test/src/test/resources/fixtures/new hydration/new-synthetic-hydration-works-when-an-ancestor-field-has-been-renamed.yml +++ b/test/src/test/resources/fixtures/new hydration/new-synthetic-hydration-works-when-an-ancestor-field-has-been-renamed.yml @@ -7,7 +7,12 @@ overallSchema: id: ID } type DevOpsRelationship @renamed(from: "Relationship") { - devOpsIssue: DevOpsIssue @hydrated(service: "IssueService" field: "syntheticIssue.issue" arguments: [{name: "id" value: "$source.issueId"}]) + devOpsIssue: DevOpsIssue + @hydrated( + service: "IssueService" + field: "syntheticIssue.issue" + arguments: [{name: "id" value: "$source.issueId"}] + ) } type DevOpsRelationshipConnection @renamed(from: "RelationshipConnection") { devOpsNodes: [DevOpsRelationship] @renamed(from: "nodes") diff --git a/test/src/test/resources/fixtures/new hydration/new-top-level-field-data-returns-null-in-batched-synthetic-hydration.yml b/test/src/test/resources/fixtures/new hydration/new-top-level-field-data-returns-null-in-batched-synthetic-hydration.yml index 9a5ceb4f5..b31c5bcc1 100644 --- a/test/src/test/resources/fixtures/new hydration/new-top-level-field-data-returns-null-in-batched-synthetic-hydration.yml +++ b/test/src/test/resources/fixtures/new hydration/new-top-level-field-data-returns-null-in-batched-synthetic-hydration.yml @@ -21,7 +21,14 @@ overallSchema: } type Issue { id: ID - authors: [User] @hydrated(service: "service2" field: "users.usersByIds" arguments: [{name: "id" value: "$source.authorIds"}] identifiedBy: "id" batchSize: 3) + authors: [User] + @hydrated( + service: "service2" + field: "users.usersByIds" + arguments: [{name: "id" value: "$source.authorIds"}] + identifiedBy: "id" + batchSize: 3 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-top-level-field-data-returns-null-in-synthetic-hydration.yml b/test/src/test/resources/fixtures/new hydration/new-top-level-field-data-returns-null-in-synthetic-hydration.yml index 3b4d5c6d2..deb0080bb 100644 --- a/test/src/test/resources/fixtures/new hydration/new-top-level-field-data-returns-null-in-synthetic-hydration.yml +++ b/test/src/test/resources/fixtures/new hydration/new-top-level-field-data-returns-null-in-synthetic-hydration.yml @@ -19,7 +19,12 @@ overallSchema: } type Issue { id: ID - project: Project @hydrated(service: "service2" field: "projects.project" arguments: [{name: "id" value: "$source.projectId"}]) + project: Project + @hydrated( + service: "service2" + field: "projects.project" + arguments: [{name: "id" value: "$source.projectId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-top-level-field-is-null-in-batched-synthetic-hydration.yml b/test/src/test/resources/fixtures/new hydration/new-top-level-field-is-null-in-batched-synthetic-hydration.yml index b3263f0bb..f6c426c71 100644 --- a/test/src/test/resources/fixtures/new hydration/new-top-level-field-is-null-in-batched-synthetic-hydration.yml +++ b/test/src/test/resources/fixtures/new hydration/new-top-level-field-is-null-in-batched-synthetic-hydration.yml @@ -18,7 +18,14 @@ overallSchema: } type Issue { id: ID - authors: [User] @hydrated(service: "service2" field: "users.usersByIds" arguments: [{name: "id" value: "$source.authorIds"}] identifiedBy: "id" batchSize: 3) + authors: [User] + @hydrated( + service: "service2" + field: "users.usersByIds" + arguments: [{name: "id" value: "$source.authorIds"}] + identifiedBy: "id" + batchSize: 3 + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-top-level-field-is-null-in-synthetic-hydration.yml b/test/src/test/resources/fixtures/new hydration/new-top-level-field-is-null-in-synthetic-hydration.yml index 7a1cf7f6b..cd14650e4 100644 --- a/test/src/test/resources/fixtures/new hydration/new-top-level-field-is-null-in-synthetic-hydration.yml +++ b/test/src/test/resources/fixtures/new hydration/new-top-level-field-is-null-in-synthetic-hydration.yml @@ -19,7 +19,12 @@ overallSchema: } type Issue { id: ID - project: Project @hydrated(service: "service2" field: "projects.project" arguments: [{name: "id" value: "$source.projectId"}]) + project: Project + @hydrated( + service: "service2" + field: "projects.project" + arguments: [{name: "id" value: "$source.projectId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/new hydration/new-transformer-on-hydration-fields.yml b/test/src/test/resources/fixtures/new hydration/new-transformer-on-hydration-fields.yml index 8740c7875..4a1ddfd05 100644 --- a/test/src/test/resources/fixtures/new hydration/new-transformer-on-hydration-fields.yml +++ b/test/src/test/resources/fixtures/new hydration/new-transformer-on-hydration-fields.yml @@ -8,7 +8,12 @@ overallSchema: } type Foo { id: ID - bar: Bar @hydrated(service: "service2" field: "barById" arguments: [{name: "id" value: "$source.barId"}]) + bar: Bar + @hydrated( + service: "service2" + field: "barById" + arguments: [{name: "id" value: "$source.barId"}] + ) } service2: | type Query { diff --git a/test/src/test/resources/fixtures/renames/rename-inside-multiple-hydrations.yml b/test/src/test/resources/fixtures/renames/rename-inside-multiple-hydrations.yml index 7a044bbb6..ee396fe79 100644 --- a/test/src/test/resources/fixtures/renames/rename-inside-multiple-hydrations.yml +++ b/test/src/test/resources/fixtures/renames/rename-inside-multiple-hydrations.yml @@ -16,8 +16,18 @@ overallSchema: } type Foo { id: ID - bar: Bar @hydrated(service: "service2" field: "barById" arguments: [{name: "id" value: "$source.barId"}]) - barLongerInput: Bar @hydrated(service: "service2" field: "barById" arguments: [{name: "id" value: "$source.fooDetails.externalBarId"}]) + bar: Bar + @hydrated( + service: "service2" + field: "barById" + arguments: [{name: "id" value: "$source.barId"}] + ) + barLongerInput: Bar + @hydrated( + service: "service2" + field: "barById" + arguments: [{name: "id" value: "$source.fooDetails.externalBarId"}] + ) } # language=GraphQL underlyingSchema: diff --git a/test/src/test/resources/fixtures/scalars/hydrating-using-date-time-as-arg.yml b/test/src/test/resources/fixtures/scalars/hydrating-using-date-time-as-arg.yml index e62641aa4..c60dde013 100644 --- a/test/src/test/resources/fixtures/scalars/hydrating-using-date-time-as-arg.yml +++ b/test/src/test/resources/fixtures/scalars/hydrating-using-date-time-as-arg.yml @@ -10,7 +10,12 @@ overallSchema: type Foo { id: ID createdAt: DateTime - successor: Foo @hydrated(service: "service" field: "successor" arguments: [{ name: "after" value: "$source.createdAt" }]) + successor: Foo + @hydrated( + service: "service" + field: "successor" + arguments: [{ name: "after" value: "$source.createdAt" }] + ) } scalar DateTime # language=GraphQL diff --git a/test/src/test/resources/fixtures/scalars/hydrating-using-long-as-arg.yml b/test/src/test/resources/fixtures/scalars/hydrating-using-long-as-arg.yml index 80f2d1c5f..e59800bda 100644 --- a/test/src/test/resources/fixtures/scalars/hydrating-using-long-as-arg.yml +++ b/test/src/test/resources/fixtures/scalars/hydrating-using-long-as-arg.yml @@ -10,7 +10,12 @@ overallSchema: type Foo { id: ID createdAt: Long - successor: Foo @hydrated(service: "service" field: "successor" arguments: [{ name: "after" value: "$source.createdAt" }]) + successor: Foo + @hydrated( + service: "service" + field: "successor" + arguments: [{ name: "after" value: "$source.createdAt" }] + ) } scalar Long # language=GraphQL diff --git a/test/src/test/resources/fixtures/scalars/hydrating-using-url-as-arg.yml b/test/src/test/resources/fixtures/scalars/hydrating-using-url-as-arg.yml index 52d86a2b8..94203dcfe 100644 --- a/test/src/test/resources/fixtures/scalars/hydrating-using-url-as-arg.yml +++ b/test/src/test/resources/fixtures/scalars/hydrating-using-url-as-arg.yml @@ -10,7 +10,12 @@ overallSchema: type Foo { id: ID url: URL - details: Lookup @hydrated(service: "service" field: "lookup" arguments: [{ name: "url" value: "$source.url" }]) + details: Lookup + @hydrated( + service: "service" + field: "lookup" + arguments: [{ name: "url" value: "$source.url" }] + ) } type Lookup { baseUrl: URL