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