Skip to main content
Version: 0.13.0 (Previous)

🚀 Location features

Location features are SDK composers, not Express middleware; locationService mounts the Location features with the required stores and drivers.

Inventory

FeatureComposed schema(s)Composed route(s)Purpose
createLocationFeaturecreateLocationSchemacreateLocationRouteCreate a hierarchy node.
getLocationFeaturegetLocationSchemagetLocationRouteRead one public location.
updateLocationFeatureupdateLocationSchemaupdateLocationRouteUpdate a location.
deleteLocationFeaturedeleteLocationSchemadeleteLocationRouteDelete a leaf location.
findLocationsFeaturefindLocationsSchemafindLocationsRouteList public locations.

Details

Each feature is mounted by locationService. The source definitions below show the exact schema-to-route composition.

createLocationFeature

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by locationService or a compatible custom service context.

View complete source
export const createLocationFeature = compose(createLocationSchema, createLocationRoute);

getLocationFeature

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by locationService or a compatible custom service context.

View complete source
export const getLocationFeature = compose(getLocationSchema, getLocationRoute);

updateLocationFeature

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by locationService or a compatible custom service context.

View complete source
export const updateLocationFeature = compose(updateLocationSchema, updateLocationRoute);

deleteLocationFeature

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by locationService or a compatible custom service context.

View complete source
export const deleteLocationFeature = compose(deleteLocationSchema, deleteLocationRoute);

findLocationsFeature

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by locationService or a compatible custom service context.

View complete source
export const findLocationsFeature = compose(findLocationsSchema, findLocationsRoute);