Skip to content

Commit e47a6e4

Browse files
authored
Add a remove configuration section (parse-community#772)
Fixes #6941
1 parent dd2ea4d commit e47a6e4

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

_includes/graphql/customisation.md

+16
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,22 @@ You can optionally override the default generated mutation names with aliases:
288288
}
289289
```
290290

291+
### Remove Configuration
292+
293+
Deploying a custom configuration via `setGraphQLConfig` persists the changes into the database. As a result, simply deleting a configuration change and deploying again does not result in a default Parse GraphQL configuration. The configuration changes remain.
294+
295+
To remove a configuration, set the affected properties to `null` or `undefined` before deploying. The default Parse GraphQL configuration for those properties will be restored.
296+
297+
```js
298+
{
299+
"enabledForClasses": undefined,
300+
"disabledForClasses": undefined,
301+
"classConfigs": undefined,
302+
}
303+
```
304+
305+
Once a default configuration is restored, you can safely remove any unused configuration changes from your `parseGraphQLServer` setup.
306+
291307
## Cloud Code Resolvers
292308

293309
The Parse GraphQL API supports the use of custom user-defined schema. The [Adding Custom Schema](#adding-custom-schema) section explains how to get started using this feature.

0 commit comments

Comments
 (0)