Update GraphQL API Configuration

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

Update your app's GraphQL API configuration.

Path parameters

application/json

Body Required

  • use_natural_pluralization boolean

    If true, generated schema type names use common English pluralization whenever possible.

    If false, or if a natural pluralization cannot be determined, then plural types use the singular type name with an "s" appended to the end.

    You cannot change this value after you create your App. This value is true for all new Apps.

  • disable_schema_introspection boolean

    If true, the GraphQL API blocks introspection queries from clients.

Responses

  • 204

    Updated

  • 400

    Cannot Set use_natural_pluralization to false

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}'
Request examples
{
  "use_natural_pluralization": true,
  "disable_schema_introspection": true
}