The functions and classes found within the @sgrud/data module are
intended to ease the type safe data handling, i.e., retrieval, mutation and
storage, within applications built upon the SGRUD
client libraries. By extending the Model class and applying adequate
decorators to the contained properties, the resulting extension will, in its
static context, provide all necessary means to interact directly with the
underlying repository, while the instance context of any class extending the
abstract Model base class will inherit methods to observe changes to
its instance field values, selectively complement the instance with fields
from the backing data storage via type safe graph representations and to
delete the respective instance from the data storage.
@sgrud/data
- The SGRUD Data Model.The functions and classes found within the
@sgrud/data
module are intended to ease the type safe data handling, i.e., retrieval, mutation and storage, within applications built upon the SGRUD client libraries. By extending the Model class and applying adequate decorators to the contained properties, the resulting extension will, in its static context, provide all necessary means to interact directly with the underlying repository, while the instance context of any class extending the abstract Model base class will inherit methods to observe changes to its instance field values, selectively complement the instance with fields from the backing data storage via type safe graph representations and to delete the respective instance from the data storage.