Navigation

Configure Read & Write Validation

Important

The MongoDB Stitch SDK is deprecated. For guidance on migrating to MongoDB Realm, please see Migrate Your App from Stitch to Realm.

Overview

Stitch validates all GraphQL read and write operations.

You can configure validation in the Stitch UI on the Web Access > GraphQL screen from the Settings tab.

Validation Levels

A validation level determines the amount of validation that Stitch performs for a read or write operation.

When Validation Level is ‘Strict’, both existing and new documents are evaluated. Only new documents are evaluated when Moderate.

Validation Actions

A validation action determines how Stitch responds when a read or write fails validation.

You may still receive errors if Validation Action is set to ‘Warn’ since data is sent client-side for GraphQL.