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 <suyeonjungdev@gmail.com>

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

Signed-off-by: Suyeon Jung <suyeonjungdev@gmail.com>

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

Signed-off-by: Suyeon Jung <suyeonjungdev@gmail.com>

---------

Signed-off-by: Suyeon Jung <suyeonjungdev@gmail.com>
Co-authored-by: Namkyu Park <53862866+namkyu1999@users.noreply.github.com>
  • Loading branch information
suyeon-jung-dev and namkyu1999 authored Sep 23, 2024
1 parent 58e59cc commit 101557c
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 101557c

Please sign in to comment.