本文整理匯總了TypeScript中backendless.Data類的典型用法代碼示例。如果您正苦於以下問題:TypeScript Data類的具體用法?TypeScript Data怎麽用?TypeScript Data使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了Data類的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: getPlace
getPlace(objId: string) : Promise<Place> {
var query = new Backendless.DataQuery();
query.options = { relations: ["location"] };
// query.options = {relationsDepth:1};
query.condition="objectId='" + objId + "'" ;
return Backendless.Data.of(Place).findById(objId, 1);
}
示例2:
.then(()=>Backendless.Data.of(Likes).find(query));
示例3: updatePlace
updatePlace(place:Place) {
return Backendless.Data.of(Place).save(place);
}
示例4: deletePlace
deletePlace(place:Place) {
return Backendless.Data.of(Place).remove(place);
}
示例5: getPlaces
getPlaces() {
var query = new Backendless.DataQuery();
query.options = { relations: ["location"] };
return Backendless.Data.of(Place).find(query);
}
示例6: createPlace
createPlace(place: Place) : Promise<Place>{
return Backendless.Data.of(Place).save(place);
}
示例7: getPlaces
getPlaces() {
return Backendless.Data.of(Place).find();
}