Answer the question
In order to leave comments, you need to log in
How to get Parse.Query?
Actually, I want to get Parse.Query without filtering, as is, and then add to the existing array. There is a connection to parse, there is access. When outputting array, keys are assigned from objectId.
Option 1:
var _newEstateData = [
{objectId: "11", name: 'first object'},
{objectId: "12", name: 'second object'},
];
function getInitialNewEstateQuery() {
return {
initialNewEstateQuery: (new Parse.Query('newEstateData')).ascending('createdAt')
};
};
function _getNewEstateData(){
_newEstateData.push(initialNewEstateQuery);
return _newEstateData
}
Uncaught ReferenceError: initialNewEstateQuery is not defined
var _newEstateData = [
{objectId: "11", name: 'first object'},
{objectId: "12", name: 'second object'},
];
var initialNewEstateQuery = new Parse.Query('newEstateData');
function _getNewEstateData(){
console.log("_getNewEstate done");
_newEstateData.push(initialNewEstateQuery);
return _newEstateData
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question