mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 04:32:01 +03:00
dbec753ca1
swc_ecma_parser: - Support optional async class methods. (#1454) swc_ecma_transforms_compat: - Hoist import statements. (#1457)
17 lines
431 B
TypeScript
17 lines
431 B
TypeScript
import { setGlobalOptions } from '@typegoose/typegoose';
|
|
import * as typegoose from '@typegoose/typegoose';
|
|
import { schemas } from './schemas';
|
|
// typegoose.mongoose.set('debug', true);
|
|
setGlobalOptions({
|
|
options: {
|
|
allowMixed: typegoose.Severity.ALLOW
|
|
},
|
|
schemaOptions: {
|
|
timestamps: {
|
|
createdAt: 'created_at',
|
|
updatedAt: 'updated_at'
|
|
}
|
|
}
|
|
});
|
|
console.log(schemas);
|