1.1.1 • Published 3 years ago
cloud-sdk-normalizr v1.1.1
Cloud SDK Normalizr
Create normalizr schemata from OData-Entities generated by the SAP Cloud SDK for JavaScript
Install
Install from the NPM repository using yarn or npm:
yarn add cloud-sdk-normalizr
npm install cloud-sdk-normalizr
Example Usage
import { normalize, createSchema } from 'cloud-sdk-normalizr';
//...
const schema = createSchema(ExampleItem1, ['ExampleItem1', 'ExampleItem2']);
const result = normalize(exampleItem1Data, schema);