Commit c2d73f37 authored by Natalia Tepluhina's avatar Natalia Tepluhina Committed by Nicolò Maria Mezzopera

Fixed local GraphQL input types to have a correct type

parent 20d55baf
......@@ -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