question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Since 2.0 `ModelClass` does not have `#query` In typings

See original GitHub issue

In version 1.x ModelClass<T> works fine. image

Now, in 2.0+ an typing error is thrown on the exact same code.

image

Is this expected, what would be the correct usage?

Thanks a lot 😄

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7

github_iconTop GitHub Comments

2reactions
koskimascommented, Jan 8, 2020

@francocorreasosa @patricklol22 a new version 2.1.0 has been released and the old ModelClass type is back. Let me know if you run in to trouble with it.

1reaction
rathaxcommented, May 8, 2021

@rathax Did you manage to solve this?

not really, sorry.

had to use modelClass: any

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vincit/objection.js - Gitter
I have an issue where I'm trying to merge query results with another object using lodash's merge function. For whatever reason, lodash doesn't...
Read more >
typescript can't resolve typing from graphql query that ...
I would like to understand what is going on here, and since i'm not very experienced with typescript, any help would be greatly...
Read more >
Spring Data JDBC - Reference Documentation
The query can be defined by an annotation somewhere or declared by other means. See the documentation of the specific store to find...
Read more >
How to create custom model fields
Don't worry, you don't have to know how to play Bridge to follow this example. ... the model class is created (the precise...
Read more >
Create a Table with SQLModel - Use the Engine
Create the Table Model Class¶. The first thing we need to do is create a class to represent the data in the table....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found