メインコンテンツまでスキップ
バージョン: 0.13.0 (Previous)

🚀 アトリビューションフィーチャー

アトリビューションフィーチャーはExpressミドルウェアではなくSDKコンポーザーです;attributesService はインデックスで記述されているデータストアおよび認証コンテキストとともにこれらをすべてマウントします。

目次​

フィーチャー合成されたスキーマ合成されたルート目的
createAttributeFeaturecreateAttributesSchemacreateAttributeRouteグループの作成。
getAttributeFeaturegetAttributeSchemagetAttributeRoute1つのグループの読み取り。
findAttributesFeaturefindAttributesSchemafindAttributesRouteグループのリスト。
updateAttributeFeatureupdateAttributesSchemaupdateAttributeRouteグループのリネーム。
deleteAttributeFeaturedeleteAttributeSchemadeleteAttributeRouteグループの削除。

詳細​

各フィーチャーはattributesServiceによってマウントされます。以下のソース定義は、スキーマからルートへの合成を示しています。

createAttributeFeature​

実装

このフィーチャーは目次行にリンクされたスキーマとルートを合成します;attributesService または互換性のありカスタムサービスコンテキストによってマウントされます。

完全なソースを表示
export const createAttributeFeature = compose(
createAttributesSchema,
createAttributeRoute
);

getAttributeFeature​

実装

このフィーチャーは目次行にリンクされたスキーマとルートを合成します;attributesService または互換性のありカスタムサービスコンテキストによってマウントされます。

完全なソースを表示
export const getAttributeFeature = compose(getAttributeSchema, getAttributeRoute);

findAttributesFeature​

実装

このフィーチャーは目次行にリンクされたスキーマとルートを合成します;attributesService または互換性のありカスタムサービスコンテキストによってマウントされます。

完全なソースを表示
export const findAttributesFeature = compose(
findAttributesSchema,
findAttributesRoute
);

updateAttributeFeature​

実装

このフィーチャーは目次行にリンクされたスキーマとルートを合成します;attributesService または互換性のありカスタムサービスコンテキストによってマウントされます。

完全なソースを表示
export const updateAttributeFeature = compose(
updateAttributesSchema,
updateAttributeRoute
);

deleteAttributeFeature​

実装

このフィーチャーは目次行にリンクされたスキーマとルートを合成します;attributesService または互換性のありカスタムサービスコンテキストによってマウントされます。

完全なソースを表示
export const deleteAttributeFeature = compose(
deleteAttributeSchema,
deleteAttributeRoute
);