SchemaHelper

The common base for SchemaHelper

getSchemaWithParentFields

Gets all parent fields

Parameters

id
String

Returns

Promise(Schema)
schema

getModel

Gets the appropriate model

Parameters

properties
Object

Returns

Schema
Schema

mergeSchemas

Merges two Schemas

Parameters

Schema
childSchema
Schema
parentSchema

Returns

Schema
Merged Schema