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