relation-expression-normalizer
v1.0.0
Published
Normalize objection relationexpression string, merging same names and their sub-objects recursively. eg [a.[a,b],a.[c]] becomes [a.[a,b,c]]
Downloads
3
Readme
relation-expression-normalizer
Normalize objection relationexpression string, merging same names and their sub-objects recursively. eg [a.[a,b],a.[c]] becomes [a.[a,b,c]]
Usage
- Install.
yarn relation-expression-normalizer
- Usage
import normalizeRelationExpression from 'relation-expression-normalizer';
const expression = '[a.[a,b],a.[c]]';
normalizeRelationExpression(expression); // returns '[a.[a,b,c]]'