Skip to content

Commit 2ca2a95

Browse files
Refactored GraphQL schema to use Query and Mutation root types in chaos_experiment.graphqls for gqlgen compatibility
Signed-off-by: Suyeon Jung <[email protected]>
1 parent 9bb9652 commit 2ca2a95

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

chaoscenter/graphql/definitions/shared/chaos_experiment.graphqls

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ type GetExperimentStatsResponse {
715715
totalExpCategorizedByResiliencyScore: [ResilienceScoreCategory]!
716716
}
717717

718-
extend type Query {
718+
type Query {
719719

720720

721721
"""
@@ -737,7 +737,7 @@ extend type Query {
737737
getExperimentStats(projectID: ID!): GetExperimentStatsResponse!
738738
}
739739

740-
extend type Mutation {
740+
type Mutation {
741741
"""
742742
Creates a new experiment and applies its manifest
743743
"""

chaoscenter/graphql/definitions/shared/chaos_infrastructure.graphqls

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ type ServerVersionResponse {
617617
value: String!
618618
}
619619

620-
type Query {
620+
extend type Query {
621621
# INFRA OPERATIONS
622622
"""
623623
Returns infra with a particular infraID in the project
@@ -656,7 +656,7 @@ type Query {
656656
getServerVersion: ServerVersionResponse!
657657
}
658658

659-
type Mutation {
659+
extend type Mutation {
660660
"""
661661
Connect a new infra for a user in a specified project
662662
"""

0 commit comments

Comments
 (0)