CogniCity Server /cities data model
- Source:
(require("src/api/cities/model"))(config, db, logger) → {Object}
Methods to get cities data from database
Parameters:
Name | Type | Description |
---|---|---|
config |
Object | Server configuration |
db |
Object | PG Promise database instance |
logger |
Object | Configured Winston logger instance |
- Source:
Returns:
Query methods
- Type
- Object