@trudb/tru-common-lib 0.0.630 → 0.0.631

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -628,9 +628,9 @@ class TruEntityAccessor {
628
628
  };
629
629
  this.formatNameValues = (query, entities, pKeyName) => {
630
630
  if (query && query.orderByClause)
631
- return _.map(entities, (entity) => { return { name: entity.Name, value: { $: entity.Value } }; });
631
+ return _.map(entities, (entity) => { return { name: entity.Name, value: { $: entity.Value }, entity: entity }; });
632
632
  else
633
- return _.map(entities, (entity) => { return { name: entity.Name, value: { $: entity.Value } }; });
633
+ return _.map(entities, (entity) => { return { name: entity.Name, value: { $: entity.Value }, entity: entity }; });
634
634
  };
635
635
  this.add = (entity, contextFilters = null) => {
636
636
  let newEntity = this._entityManager.createEntity(entity.prototype.entityType);