ForestAdmin/lumber

View on GitHub
test-fixtures/mongo/sub-document-using-ids-model.js

Summary

Maintainability
A
0 mins
Test Coverage
const { ObjectID } = require('mongodb');

const persons = [
  {
    _id: ObjectID(),
    name: 'James Cameron',
    propArrayOfObjects: [
      {
        _id: ObjectID(),
        sampleValue: 'sample value',
        'complex name': 'sample',
      },
    ],
  },
];

module.exports = { persons };