0.0.3 • Published 6 years ago

@scbd/generics v0.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

Generics v2

Completed Features (as discussed at meetings + in addition to some of my own ideas)

  • NPM package
  • History of changes out side of collection
  • Metas out side of collection
  • Validation that complies with security policies
  • all schemas and definitions loaded so definition only declared once.
  • Edge concept - all references to other documents will be in an edge schema
    • benefits for keeping track of dead references to deleted or archived records
    • establishing relationships of data
    • enable easy triggering of indexation of parents who may index some child info
  • EdgeFixed - references the history version of the document and never changes.
  • lString collection - all lStrings in one place for easier translations of data.
  • Data structure follows an object oriented inheritance structure. Inspired by schema.org founded by Google, Microsoft, Yahoo and Yandex. I argue that object orientation and inheritance is not maintainable. Further I argue functional programing is better. These arguments do not apply to data structures though! Google, Microsoft, Yahoo and Yandex.
  • url collection for external references, one collection for easy 404 checking.
  • separation of middleware by concerns (ability to overwrite each)
    • sanitize
    • security
    • Validation
    • meta
    • pre query
    • query
    • post query
    • afterware - to be called at the end of the express route "creating mq msgs"
  • localization
  • lstring schema keys
  • auto indexing of keys / specifying indexes in schema.
  • property alias's
  • title/name to ID
  • identifier is full url

In progress:

  • 60% finished edger, api automatically build an edge when pointing to another schema.
  • 40% tests - for new features

Todo: afterware - workingDocument - all documents not in their final or intended state will reside in working documents. edger - automatically build edge collection entry for our own registered schemas referenced.
returning children object in query option.