adonis-mongodb
adonis-mongodb copied to clipboard
Query types question
After latest update I have new error type on the queries. What should be the new way for adding the types for a query object? I'm doing this
type NotReadOnly<T> = {
-readonly [P in keyof T]: T[P];
};
let query: Filter<NotReadOnly<ModelAttributes<Sample>>> = {};
But I get errors on types like $regex, $or, and basically all other operators
@targos @stropitek ?
Please provide more information about your problem
- What new way of adding types (what version breaks your types?)
- Typescript playground that shows the problem