"ParseError: 130 option enableschemahooks is not supported." since 5.3.0

I have tried to upgrade parse-server from 5.2.8 to 5.3.0, but our integration tests fail. When testing cloud functions, some cloud functions (but not all) throw this error:

Expected a promise to be resolved but it was rejected with ParseError: 130 option enableschemahooks is not supported.
at UserContext. (/parse/cloud/fooBar.test.js:99:9)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
  databaseOptions: {
    enableSchemaHooks: false,

We have this option set since upgrading from v4.5.0 to v5.2.1. Removing this option fixes the error.

Currently this fails on in Github Actions, not locally. Although the setup uses the same docker-compose setup. MongoDB version is 4.4.

Findings so far:

  • cloud functions seem to fail when using Parse.Query() or Parse.File().save()

Sharing my current state, maybe someone is working on this.

This looks like a MongoDB error that is just wrapped in a Parse Error. Could it be that your MongoDB deployment doesn’t support that option? You may be using a different MongoDB version remotely vs. locally.