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

fix(knex): find by custom types with object subconditions #1656

Merged

Conversation

jbmikk
Copy link
Contributor

@jbmikk jbmikk commented Apr 6, 2021

When using queries with conditions in custom types an alias gets appended in the where expression for the type.

    const foundLocation = await orm.em.findOne(Location, {
      point: new Point(1, 1),
      extendedPoint: { $ne: null },
    });

@B4nan B4nan merged commit d8c328a into mikro-orm:master Apr 8, 2021
@B4nan
Copy link
Member

B4nan commented Apr 8, 2021

Thanks!

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

Successfully merging this pull request may close these issues.

None yet

2 participants