@ratatosk/ngsi-mongo-storage

1.2.7 • Public • Published

ngsi-mongo-storage

A list of changes as compared to Orion database schema

// NOW

  • DateTime gets stored as a proper date, NOT seconds (i.e. Integer) since 1970

// LATER

  • attrNames and attr.mdNames REMOVED
  • _id.id -> nameId (and maps to entity.id)
  • _id.type -> type (and maps to entity.type)
  • _id.servicePath -> servicePath (exposed as a builtin "servicePath")
  • _id is just saved as an ObjectId() (exposed as a builtin "fiwareId")
  • uniqueness index added to {nameId, type, servicePath} trio to enforce Orion compatibility
  • builtins expanded to include {servicePath, fiwareId} (from above)

Readme

Keywords

none

Package Sidebar

Install

npm i @ratatosk/ngsi-mongo-storage

Weekly Downloads

6

Version

1.2.7

License

Apache-2.0

Unpacked Size

318 kB

Total Files

63

Last publish

Collaborators

  • sensative-user