Skip to content

Add a remove configuration section #772

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 15, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions _includes/graphql/customisation.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,22 @@ You can optionally override the default generated mutation names with aliases:
}
```

### Remove Configuration

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.

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.

```js
{
"enabledForClasses": undefined,
"disabledForClasses": undefined,
"classConfigs": undefined,
}
```

Once a default configuration is restored, you can safely remove any unused configuration changes from your `parseGraphQLServer` setup.

## Cloud Code Resolvers

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.
Expand Down