Skip to content

Commit

Permalink
Converted an extended operation type to a root type in the GraphQL sc…
Browse files Browse the repository at this point in the history
…hema (#4894)

* Converted an extended operation type to a root type in the GraphQL schema

Signed-off-by: Suyeon Jung <[email protected]>

* Refactored GraphQL schema to use Query and Mutation root types in chaos_experiment.graphqls for gqlgen compatibility

Signed-off-by: Suyeon Jung <[email protected]>

* Update github.com/99designs/gqlgen version 0.17.42 to 0.17.49

Signed-off-by: Suyeon Jung <[email protected]>

---------

Signed-off-by: Suyeon Jung <[email protected]>
Co-authored-by: Namkyu Park <[email protected]>
Signed-off-by: dusdjhyeon <[email protected]>
  • Loading branch information
2 people authored and dusdjhyeon committed Sep 24, 2024
1 parent 5f2eab5 commit e8f45b8
Show file tree
Hide file tree
Showing 11 changed files with 444 additions and 445 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ type GetExperimentStatsResponse {
totalExpCategorizedByResiliencyScore: [ResilienceScoreCategory]!
}

extend type Query {
type Query {


"""
Expand All @@ -737,7 +737,7 @@ extend type Query {
getExperimentStats(projectID: ID!): GetExperimentStatsResponse!
}

extend type Mutation {
type Mutation {
"""
Creates a new experiment and applies its manifest
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ extend type Mutation {
kubeNamespace(request: KubeNamespaceData!): String!
}

extend type Subscription {
type Subscription {
# INFRA OPERATIONS
"""
Listens infra events from the graphql server
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions chaoscenter/graphql/server/graph/chaoshub.resolvers.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion chaoscenter/graphql/server/graph/environment.resolvers.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

866 changes: 433 additions & 433 deletions chaoscenter/graphql/server/graph/generated/generated.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion chaoscenter/graphql/server/graph/gitops.resolvers.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion chaoscenter/graphql/server/graph/probe.resolvers.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e8f45b8

Please sign in to comment.