* Returns a MongoDB [ObjectId](https://docs.mongodb.com/manual/reference/method/ObjectId/) string. * * @example * faker.database.mongodbObjectId() // 'e175cac316a79afdd0ad3afb' * * @since 6.2.0
()
| 75 | * @since 6.2.0 |
| 76 | */ |
| 77 | mongodbObjectId(): string { |
| 78 | return this.faker.string.hexadecimal({ |
| 79 | length: 24, |
| 80 | casing: 'lower', |
| 81 | prefix: '', |
| 82 | }); |
| 83 | } |
| 84 | } |
no test coverage detected