> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stigg.io/llms.txt
> Use this file to discover all available pages before exploring further.

# validateMergeEnvironment

> Validate that one environment can be merged into another



**query** `validateMergeEnvironment(input: ValidateMergeEnvironmentInput!): ValidateMergeEnvironment!`

## Arguments

**`input`**: `ValidateMergeEnvironmentInput!` (required)

## Returns

`ValidateMergeEnvironment!`

**`errors`**: `[String!]!`

List of errors or warnings found during the validation. Empty if isValid is true

---

**`isValid`**: `Boolean!`

Boolean indicating whether the merge is valid and can proceed without issues

## Examples

```graphql Query
query ValidateMergeEnvironment($input: ValidateMergeEnvironmentInput!) {
  validateMergeEnvironment(input: $input) {
    errors
    isValid
  }
}
```

```json Variables
{
  "input": {
    "destinationEnvironmentSlug": "string",
    "sourceEnvironmentSlug": "string"
  }
}
```

```json Response
{
  "data": {
    "validateMergeEnvironment": {
      "errors": [
        "string"
      ],
      "isValid": true
    }
  }
}
```


## Related topics

- [ValidateMergeEnvironment](https://docs.stigg.io/graphql-reference/types/ValidateMergeEnvironment.md)
- [ValidateMergeEnvironmentInput](https://docs.stigg.io/graphql-reference/types/ValidateMergeEnvironmentInput.md)
- [mergeEnvironment](https://docs.stigg.io/graphql-reference/mutations/mergeEnvironment.md)
- [MergeEnvironment](https://docs.stigg.io/graphql-reference/types/MergeEnvironment.md)
- [MergeEnvironmentInput](https://docs.stigg.io/graphql-reference/types/MergeEnvironmentInput.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.