Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reformat applied hydrated directives #500

Merged
merged 1 commit into from
Jan 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,25 @@ 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 {
foo: Foo
}
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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down
Loading
Loading