[SOLVED] Parse.bulkWrite is not a function

Hi,
Still trying to migrate my Moralis server to our self hosted one (I’m currently using the parse server migration repo to do it) and while trying to convert in TS / integrate my cloud functions and run some tests, I’m running into an issue with the bulkWrite function for some reason, never had this issue before ( I couldn’t test all of my functions yet, hopefully that’s the only one acting funny).
Here is the error I have

Parse.bulkWrite is not a function {ā€œcodeā€:141,ā€œstackā€:"TypeError: Parse.bulkWrite is not a function

For lisibility/maintainability purposes I’ve split my code into differents files, here is the breadown of it

main.ts

declare const Parse: any;
import { myFunction } from './components/prizes';
[...]
myFunction();

prizes.ts

import { [...], helperFunc } from '../utils/helpers';
declare const Parse: any;

export function myFunction() {
Parse.Cloud.define('myFunction', async (request: any) => {
[...]
helperFunc (p1,p2,p2);
})
}

helpers.ts

declare const Parse: any;
export function helperFunc (p1: any[], p2: string, p3: string) {
[...]
  return Parse.bulkWrite('Items', bulkedItems);
}

bulkWrite may not be implemented in parse server (it was an addition to a moralis server), you can try to add it or you can use directly mongo db connection in order to do what bulk write

Is there really no way I can make it usable on my server ? What other functions aren’t available on self hosted Moralis servers ? Migration already takes forever, but if we need to build all the of the tools …

You can add your own function for bulkWrite.