-
-
Notifications
You must be signed in to change notification settings - Fork 14
Entity
Diego van Haaster edited this page Feb 23, 2022
·
2 revisions
let airportsResource = this.airportsService.entities();
let airportResource = airportsResource.entity('RDA');
let newAirportResource = airportResource.key('RAD');
let newAirportResource = airportResource.keys(['RAD', 'ERD']);
let mediaAirportResource = airportResource.media();
let navResource = airportResource.navigationProperty('nav');
let propResource = airportResource.property('prop');
let actionResource = airportResource.action('Default.Action');
let functionResource = airportResource.function('Default.Function');
let castResource = airportResource.cast('Type');
airportResource.update(airport).subscribe();
airportResource.modify(airport).subscribe();
airportResource.destroy().subscribe();
airportResource.fetch().subscribe(({ entity, annots }) => {
console.log('Airport: ', entity);
console.log('Annotations: ', annots);
});
airportResource.fetchEntity().subscribe((airport) => {
console.log('Airport: ', airport);
});
airportResource.fetchModel().subscribe((model) => {
console.log('Airport: ', model);
});