Commit 5d69467e authored by Nicolò Maria Mezzopera's avatar Nicolò Maria Mezzopera

Merge branch 'ntepluhina-fix-input-types' into 'master'

Fixed local GraphQL input types to have a correct type

See merge request gitlab-org/gitlab!76647
parents 0a76dd5c c2d73f37
...@@ -9,12 +9,29 @@ type LocalEnvironment { ...@@ -9,12 +9,29 @@ type LocalEnvironment {
autoStopPath: String autoStopPath: String
} }
input LocalEnvironmentInput {
id: Int!
globalId: ID!
name: String!
folderPath: String
stopPath: String
deletePath: String
retryUrl: String
autoStopPath: String
}
type NestedLocalEnvironment { type NestedLocalEnvironment {
name: String! name: String!
size: Int! size: Int!
latest: LocalEnvironment! latest: LocalEnvironment!
} }
input NestedLocalEnvironmentInput {
name: String!
size: Int!
latest: LocalEnvironmentInput!
}
type LocalEnvironmentFolder { type LocalEnvironmentFolder {
environments: [LocalEnvironment!]! environments: [LocalEnvironment!]!
availableCount: Int! availableCount: Int!
...@@ -40,13 +57,13 @@ type LocalErrors { ...@@ -40,13 +57,13 @@ type LocalErrors {
extend type Query { extend type Query {
environmentApp: LocalEnvironmentApp environmentApp: LocalEnvironmentApp
folder(environment: NestedLocalEnvironment): LocalEnvironmentFolder folder(environment: NestedLocalEnvironmentInput): LocalEnvironmentFolder
isLastDeployment: Boolean isLastDeployment: Boolean
} }
extend type Mutation { extend type Mutation {
stopEnvironment(environment: LocalEnvironment): LocalErrors stopEnvironment(environment: LocalEnvironmentInput): LocalErrors
deleteEnvironment(environment: LocalEnvironment): LocalErrors deleteEnvironment(environment: LocalEnvironmentInput): LocalErrors
rollbackEnvironment(environment: LocalEnvironment): LocalErrors rollbackEnvironment(environment: LocalEnvironmentInput): LocalErrors
cancelAutoStop(environment: LocalEnvironment): LocalErrors cancelAutoStop(environment: LocalEnvironmentInput): LocalErrors
} }
...@@ -33,11 +33,11 @@ type LocalWorkItem { ...@@ -33,11 +33,11 @@ type LocalWorkItem {
widgets: [LocalWorkItemWidgetConnection] widgets: [LocalWorkItemWidgetConnection]
} }
type LocalCreateWorkItemInput { input LocalCreateWorkItemInput {
title: String! title: String!
} }
type LocalUpdateWorkItemInput { input LocalUpdateWorkItemInput {
id: ID! id: ID!
title: String title: String
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment