Hi,
I am using Moralis v1.3.3 in a node.js environment and I have been trying to create some objects and store them in the Moralis database but I keep getting this error:
...\node_modules\moralis\lib\node\RESTController.js:423
error = new _ParseError.default(errorJSON.code, errorJSON.error);
^
ParseError: schema class name does not revalidate
at handleError (...\node_modules\moralis\lib\node\RESTController.js:423:17)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
code: 107
}
Does anyone know what my problem could be?
This is how I set it up
Moralis.start({serverUrl, appId});
const newClass = Moralis.Object.extend(collectionName);
const newObject = new newClass();
newObject.set("random_key", "random value");
newObject.save().then(r => console.log("saved some object"));
I tried to wait until the Moralis.start returns a promise but that didnβt change anything. Does anyone know whatβs going on?