forked from cerc-io/snowballtools-base
Nabarun Gogoi
2fb048e8ab
* Add mutation to update deployment to production * Implement gql client mutation and frontend to update deployment to production * Add toast message when deployment is changed to production * Throw error from init db script if db aleardy exists --------- Co-authored-by: neeraj <neeraj.rtly@gmail.com>
20 lines
516 B
TypeScript
20 lines
516 B
TypeScript
import { gql } from '@apollo/client';
|
|
|
|
export const removeMember = gql`
|
|
mutation ($memberId: String!) {
|
|
removeMember(memberId: $memberId)
|
|
}
|
|
`;
|
|
|
|
export const addEnvironmentVariables = gql`
|
|
mutation ($projectId: String!, $environmentVariables: [AddEnvironmentVariableInput!]) {
|
|
addEnvironmentVariables(projectId: $projectId, environmentVariables: $environmentVariables)
|
|
}
|
|
`;
|
|
|
|
export const updateDeploymentToProd = gql`
|
|
mutation ($deploymentId: String!) {
|
|
updateDeploymentToProd(deploymentId: $deploymentId)
|
|
}
|
|
`;
|