Skip to main content
Version: 0.14.0 (Latest)

๐Ÿš€ Order features

Order features are SDK composers, not Express middleware; orderService mounts all six in service order.

Inventoryโ€‹

FeatureComposed schema(s)Composed route(s)Purpose
createOrderFeaturecreateOrderSchemacreateOrderRouteCreate an order.
updateOrderFeatureupdateOrderSchemaupdateOrderRouteUpdate an order.
getOrderFeaturegetOrderSchemagetOrderRouteRead one order.
findOrdersFeaturefindOrdersSchemafindOrdersRouteList orders.
deleteOrderFeaturedeleteOrderSchemadeleteOrderRouteDelete one order.
findOrdersByOrganizationIdFeaturefindByOrganizationIdSchemafindOrdersByOrganizationIdRouteList one organizationโ€™s orders.

Detailsโ€‹

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

createOrderFeatureโ€‹

Implementation

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

View complete source
export const createOrderFeature = compose(createOrderSchema, createOrderRoute);

updateOrderFeatureโ€‹

Implementation

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

View complete source
export const updateOrderFeature = compose(updateOrderSchema, updateOrderRoute);

getOrderFeatureโ€‹

Implementation

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

View complete source
export const getOrderFeature = compose(getOrderSchema, getOrderRoute);

findOrdersFeatureโ€‹

Implementation

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

View complete source
export const findOrdersFeature = compose(findOrdersSchema, findOrdersRoute);

deleteOrderFeatureโ€‹

Implementation

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

View complete source
export const deleteOrderFeature = compose(deleteOrderSchema, deleteOrderRoute);

findOrdersByOrganizationIdFeatureโ€‹

Implementation

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

Uses the cross-domain organization findByOrganizationIdSchema from the inventory row.

View complete source
export const findOrdersByOrganizationIdFeature = compose(findByOrganizationIdSchema, findOrdersByOrganizationIdRoute);