Closed Madsn closed 5 years ago
Ahh sorry, I realize my mistake now.
For others who, like me, don't read the documentation closely enough, the correct syntax in
// Fields in the model.
properties: {
// !code: schema_properties
likes: { type: 'integer', required: true },
timestamp: { type: 'integer', required: true },
type: { type: 'string', required: true },
initials: { type: 'string', required: true }
// !end
},
Steps to reproduce
Expected behavior
I would expect the generated mongo/sequelize/mongoose files contain properties/fields of the same (or equivalent) type as specified in.schema.ts
Actual behavior
All properties are created as string for mongo/mongoose, and TEXT for sequelize. *.schema.ts
*.mongo.ts
*.mongoose.ts
*.sequelize.ts
System configuration
Tell us about the applicable parts of your setup.
Module versions (especially the part that's not working):
NodeJS version:
Operating System: Windows 10 Browser Version: Not relevant React Native Version: Not relevant Module Loader: Don't know / Not relevant