I’m new to moralis, following the docs i have know that we can retrieve our data by using ‘objectId’ like this
const Monster = Moralis.Object.extend("Monster");
const query = new Moralis.Query(Monster);
//get monster with id xWMyZ4YEGZ
query.get("xWMyZ4YEGZ").then(
(monster) => {
// The object was retrieved successfully.
},
(error) => {
// The object was not retrieved successfully.
// error is a Moralis.Error with an error code and message.
}
);```
But at this time i want to get the value of ‘objectId’ without copy and paste it, can i use this ?
query.get('objectId')
Base on the value of objectId, I can easily queries my data ! Looking for your response !
Thanks for your help!!!