-
-
Notifications
You must be signed in to change notification settings - Fork 14
EntitySet
Diego van Haaster edited this page Mar 4, 2022
·
4 revisions
let airportsResource = this.airportsService.entities();
let airportResource = airportsResource.entity('ARD');
let actionResource = airportsResource.action('Default.Action');
let functionResource = airportsResource.function('Default.Function');
let countResource = airportsResource.count();
let castResource = airportsResource.cast('Type');
airportsResource.create(airport).subscribe();
airportsResource.fetch().subscribe(({ entities, annots }) => {
console.log('Airports: ', entities);
console.log('Annotations: ', annots);
});
airportsResource.fetchEntities().subscribe((airports) => {
console.log('Airports: ', airports);
});
airportsResource.fetchCollection().subscribe((col) => {
console.log('Airports: ', col.models());
});
airportsResource.fetchAll().subscribe((airports) => {
console.log('Airports: ', airports);
});