|
|
|
|
@ -1,5 +1,4 @@
|
|
|
|
|
import { MongoClient, ObjectId, BSON, BSONType, Decimal128, Binary } from 'mongodb';
|
|
|
|
|
import { compile } from 'json-schema-to-typescript';
|
|
|
|
|
import { MongoClient, ObjectId, BSON, BSONType, Decimal128, Binary } from 'npm:mongodb';
|
|
|
|
|
|
|
|
|
|
interface Schema {
|
|
|
|
|
[key: string]: {
|
|
|
|
|
@ -17,7 +16,7 @@ interface MongoTypeMap {
|
|
|
|
|
Decimal128: number;
|
|
|
|
|
Object: object;
|
|
|
|
|
Array: any[];
|
|
|
|
|
Binary: Buffer;
|
|
|
|
|
Binary: Uint8Array;
|
|
|
|
|
Timestamp: Date;
|
|
|
|
|
Date: Date;
|
|
|
|
|
ObjectId: string;
|
|
|
|
|
|