Skip to content

Latest commit

 

History

History
27 lines (15 loc) · 976 Bytes

getCommonSchemaConfig.md

File metadata and controls

27 lines (15 loc) · 976 Bytes

elections-cpl.api.hscc.bdpa.orgDocs


elections-cpl.api.hscc.bdpa.org / lib/mongo-common / getCommonSchemaConfig

Function: getCommonSchemaConfig()

getCommonSchemaConfig(additionalSchemaConfig?): DbSchema

A JSON representation of the backend Mongo database structure. This is used for common consistent "well-known" db structure across projects.

Well-known databases and their well-known collections currently include:

  • root (collections: auth, request-log, limited-log)

Parameters

additionalSchemaConfig?: DbSchema

Returns

DbSchema

Source

lib/mongo-common/index.ts:28