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.

Implement interpreter for mikro-orm

See original GitHub issue
  • this interpreter should be part of a new package @ucast/mikro-orm (put it in packages/mikro-orm)
  • it should support the same operators as js interpreter from @ucast/js (the most complex is $elemMatch)
  • it should allow to pass custom operators
  • it should use createInterpreter function from @ucast/core to create interpret function
  • the return value of interpret function is a query builder
  • it should take initial query builder as an argument
  • when it finds condition.field with dots inside it’s a hint that this property may be a relation to another table. Using mikro-orm API we should be able to understand and if a field construct query for JSON field and if it’s a relation add INNER JOIN + where conditions

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:19 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
ujwal-setlurcommented, Jul 8, 2020

I can take a stab at this.

0reactions
stalniycommented, Aug 14, 2020

close in favor of #8

Read more comments on GitHub >

github_iconTop Results From Across the Web

Working with Entity Manager - MikroORM
Persist determines whether to use insert or update and computes appropriate change-set. ... use constructors in our entities for required parameters
Read more >
Configuration - MikroORM
By default, ReflectMetadataProvider is used that leverages the reflect-metadata . You can also use TsMorphMetadataProvider by installing @mikro-orm/reflection .
Read more >
Installation & Usage | MikroORM
First install the module via yarn or npm and do not forget to install the.
Read more >
Quick Start - MikroORM
To do so, use the RequestContext helper: const app = express(); app.use((req, res, next) => { RequestContext.create(orm.em, next); } ...
Read more >
Does anyone knows how to create dates with mikro orm to ...
Does anyone knows how to create dates with mikro orm to postgres, I am getting invalid token 08-. import { Entity, PrimaryKey ...
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