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 {
autoStopPath: String
}
input LocalEnvironmentInput {
id: Int!
globalId: ID!
name: String!
folderPath: String
stopPath: String
deletePath: String
retryUrl: String
autoStopPath: String
}
type NestedLocalEnvironment {
name: String!
size: Int!
latest: LocalEnvironment!
}
input NestedLocalEnvironmentInput {
name: String!
size: Int!
latest: LocalEnvironmentInput!
}
type LocalEnvironmentFolder {
environments: [LocalEnvironment!]!
availableCount: Int!
......@@ -40,13 +57,13 @@ type LocalErrors {
extend type Query {
environmentApp: LocalEnvironmentApp
folder(environment: NestedLocalEnvironment): LocalEnvironmentFolder
folder(environment: NestedLocalEnvironmentInput): LocalEnvironmentFolder
isLastDeployment: Boolean
}
extend type Mutation {
stopEnvironment(environment: LocalEnvironment): LocalErrors
deleteEnvironment(environment: LocalEnvironment): LocalErrors
rollbackEnvironment(environment: LocalEnvironment): LocalErrors
cancelAutoStop(environment: LocalEnvironment): LocalErrors
stopEnvironment(environment: LocalEnvironmentInput): LocalErrors
deleteEnvironment(environment: LocalEnvironmentInput): LocalErrors
rollbackEnvironment(environment: LocalEnvironmentInput): LocalErrors
cancelAutoStop(environment: LocalEnvironmentInput): LocalErrors
}
......@@ -33,11 +33,11 @@ type LocalWorkItem {
widgets: [LocalWorkItemWidgetConnection]
}
type LocalCreateWorkItemInput {
input LocalCreateWorkItemInput {
title: String!
}
type LocalUpdateWorkItemInput {
input LocalUpdateWorkItemInput {
id: ID!
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