Skip to content

Commit 5eac8bc

Browse files
Fix gql schema to support usageless pings (#1464)
1 parent 94c7e59 commit 5eac8bc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

apps/graphql/lib/graphql/schema/cluster.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ defmodule GraphQl.Schema.Cluster do
1919

2020
input_object :cluster_ping_attributes do
2121
field :cluster, non_null(:cluster_attributes), description: "the cluster to ping"
22-
field :usage, non_null(:cluster_usage_attributes), description: "the usage of the cluster"
22+
field :usage, :cluster_usage_attributes, description: "the usage of the cluster"
2323
end
2424

2525
input_object :cluster_usage_attributes do

schema/schema.graphql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ input ClusterPingAttributes {
752752
cluster: ClusterAttributes!
753753

754754
"the usage of the cluster"
755-
usage: ClusterUsageAttributes!
755+
usage: ClusterUsageAttributes
756756
}
757757

758758
input ClusterUsageAttributes {

www/src/generated/graphql.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ export type ClusterPingAttributes = {
531531
/** the cluster to ping */
532532
cluster: ClusterAttributes;
533533
/** the usage of the cluster */
534-
usage: ClusterUsageAttributes;
534+
usage?: InputMaybe<ClusterUsageAttributes>;
535535
};
536536

537537
export type ClusterUsageAttributes = {

0 commit comments

Comments
 (0)