본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

DeGraphQL 플러그인 구성 참조

원문 보기 위키 갱신

DeGraphQL 플러그인 구성 참조 (DeGraphQL Plugin Configuration Reference)

이 문서는 Kong의 DeGraphQL 플러그인에서 설정할 수 있는 파라미터를 스키마 형태로 정리한 구성 참조예요 DeGraphQL 플러그인은 URI 기반 요청을 GraphQL 쿼리로 변환해 주는 플러그인인데, 여기서는 GraphQL 엔드포인트 경로를 지정하는 graphql_server_path의 기본값과 설명을 비롯해 protocols, route, service 같은 설정 항목까지 한눈에 확인할 수 있어요 각 필드의 기본값과 역할이 함께 담겨 있으니, 플러그인을 서비스나 라우트에 적용하기 전에 설정 값을 점검하는 용도로 활용해 보세요

출처: 문서

본문

{
  "properties": {
    "config": {
      "properties": {
        "graphql_server_path": {
          "default": "/graphql",
          "description": "The GraphQL endpoint serve path",
          "type": "string"
        }
      },
      "type": "object"
    },
    "expressions": {
      "additionalProperties": true,
      "type": "object"
    },
    "protocols": {
      "default": [
        "grpc",
        "grpcs",
        "http",
        "https"
      ],
      "description": "A set of strings representing HTTP protocols.",
      "items": {
        "enum": [
          "grpc",
          "grpcs",
          "http",
          "https"
        ],
        "type": "string"
      },
      "type": "array"
    },
    "route": {
      "additionalProperties": false,
      "description": "If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.",
      "properties": {
        "id": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "service": {
      "additionalProperties": false,
      "description": "If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.",
      "properties": {
        "id": {
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}

관련 리소스

더 알아보기 (Learn more)