Error: 101 Object not found

Hi.

if X is a custom table or object in moralis database.

const X= Moralis.Object.extend(‘X’);

const query = new Moralis.Query(X);

try

{

    let x= await query.get("xxxxxxxxql39h");

    console.log(x);

}

catch (error)
{
    alert("Error: " + error.code + " " + error.message);
}


output:

Error: 101 Object not found

what do you want to do there?
https://docs.moralis.io/moralis-server/database/queries

you usually use get on the object returned by the query, not on the query

from the doc, it is a way to get object from db by specifying the objectId. And it is confusing.