Skip to content

Ability to override the global JS SDK within the Server runtime #9079

@dplewis

Description

@dplewis

New Feature / Enhancement Checklist

Current Limitation

It's currently not possible to change the JS SDK that ships with each Parse Server release.

Feature / Enhancement Description

Add a ParseSDK configuration to change the global Parse within the server here.

const Parse = require('../../node');

await ParseServer.startApp({
  ...
  parseSDK: Parse
});

Parse.Cloud.define('Override', () => {
  const object = new Parse.Object('test'); // Should use parseSDK instead of builtin SDK
});

Example Use Case

You can use the latest JS SDK without waiting for a new release. It would work if you need to use your own custom fork of the SDK. This is useful in the JS SDK test suite as changes made can be used in cloud code functions immediately. Could be used for #8787

Alternatives / Workarounds

3rd Party References

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions