summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/alerts_settings/graphql/mutations/create_http_integration.mutation.graphql
blob: d4f4f244759734719d77467ca2d52d55c3670f05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#import "../fragments/http_integration_item.fragment.graphql"

mutation createHttpIntegration($projectPath: ID!, $name: String!, $active: Boolean!) {
  httpIntegrationCreate(input: { projectPath: $projectPath, name: $name, active: $active }) {
    errors
    # We have ID in a deeply nested fragment
    # eslint-disable-next-line @graphql-eslint/require-id-when-available
    integration {
      ...HttpIntegrationItem
    }
  }
}