Update GraphQL API Configuration
Update your app's GraphQL API configuration.
Path parameters
-
An Atlas Project/Group ID.
-
The ObjectID of your application. The App Services API Project and Application IDs section demonstrates how to find this value.
Body
Required
A valid GraphQL API configuration object.
-
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. -
If
true
, the GraphQL API blocks introspection queries from clients.
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
}