@objectstack/driver-memory 7.3.0 → 7.4.0

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.
package/dist/index.mjs CHANGED
@@ -351,6 +351,8 @@ var _InMemoryDriver = class _InMemoryDriver {
351
351
  }
352
352
  if (query.fields && Array.isArray(query.fields) && query.fields.length > 0) {
353
353
  results = results.map((record) => this.projectFields(record, query.fields));
354
+ } else {
355
+ results = results.map((record) => ({ ...record }));
354
356
  }
355
357
  this.logger.debug("Find completed", { object, resultCount: results.length });
356
358
  return results;