src/model/model.js
function extractPaths(schemaPaths, model) {
  return reduce(schemaPaths, (fields, schemaPath) => (
    merge(fields, extractPath(schemaPath, model))
  ), {});
}
function extractPaths(schemaPaths, model) {
  return reduce(schemaPaths, (fields, schemaPath) => (
    merge(fields, extractPath(schemaPath, model))
  ), {});
}
function extractPaths ( schemaPaths , model ) { return reduce ( schemaPaths , ( fields , schemaPath ) => ( merge ( fields , extractPath ( schemaPath , model ) ) ) , { } ) ; }
Merge sub-document tree chunks
@method extractPaths
@param {Object} schemaPaths
@param {Object} model
@return {Object) extractedSchemaPaths
Merge sub - document tree chunks