Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query types question #126

Open
maasencioh opened this issue Feb 15, 2022 · 2 comments
Open

Query types question #126

maasencioh opened this issue Feb 15, 2022 · 2 comments

Comments

@maasencioh
Copy link

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

@maasencioh
Copy link
Author

@targos @stropitek ?

@stropitek
Copy link
Contributor

stropitek commented Mar 7, 2022

Please provide more information about your problem

  • What new way of adding types (what version breaks your types?)
  • Typescript playground that shows the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants