[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.