GraphQL API 구성 업데이트 더 이상 사용되지 않습니다.

PUT /groups/{groupId}/apps/{appId}/graphql/config

앱의 GraphQL API 구성을 업데이트합니다.

경로 매개변수

application/json

body 필수 사항

유효한 GraphQL API 구성 객체입니다.

  • use_natural_pluralization 부울

    true인 경우 생성된 스키마 유형 이름은 가능할 때마다 일반적인 영어 복수형을 사용합니다.

    false인 경우 또는 자연 복수형을 결정할 수 없는 경우 복수 유형은 끝에 "s"가 추가된 단수 유형 이름을 사용합니다.

    앱을 생성한 후에는 이 값을 변경할 수 없습니다. 모든 새 앱의 경우 이 값은 true입니다.

  • disable_schema_introspection 부울

    true인 경우 GraphQL API는 클라이언트의 인트로스펙션 쿼리를 차단합니다.

응답

  • 204

    Updated

  • 400

    use_natural_pluralizationfalse로 설정할 수 없습니다.

PUT /groups/{groupId}/apps/{appId}/ GraphQL/config
curl \
 --request PUT 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/graphql/config' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"use_natural_pluralization":true,"disable_schema_introspection":true}'
요청 예시
{
  "use_natural_pluralization": true,
  "disable_schema_introspection": true
}