ForestAdmin/lumber

View on GitHub
test-fixtures/mongo/sub-documents-ambiguous-ids-model.js

Summary

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

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

module.exports = { persons };