Coveralls logob
Coveralls logo
  • Home
  • Features
  • Pricing
  • Docs
  • Sign In

mikro-orm / mikro-orm
100%
master: 100%

DEFAULT BRANCH: master
Build:
LAST BUILD BRANCH: 4.x
Repo Added 02 Sep 2019 08:25AM UTC
Total Files 400
# Builds 7897 Last
Badge
Badge Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH query-typing
branch: query-typing
CHANGE BRANCH
x
Reset
  • query-typing
  • dev
  • master
  • logger
  • replica
  • reference-wrapper
  • mariadb
  • v2.7.8
  • find-one-or-fail
  • query-params
  • renovate/ts-morph-4.x
  • deep-where-op
  • v2.7.9
  • composite
  • collection-type
  • migrations
  • fs-leak
  • renovate/mysql2-2.x
  • renovate/ts-morph-5.x
  • enum
  • create-drop-db
  • renovate/docker-postgres-11.x
  • reflect-metadata
  • unified-topology
  • renovate/chalk-3.x
  • renovate/yargs-15.x
  • v3.0.0-rc
  • docusaurus
  • renovate/fast-deep-equal-3.x
  • renovate/docusaurus-core-2.x
  • renovate/docusaurus-preset-classic-2.x
  • renovate/docusaurus-preset-classic-2.x-lockfile
  • renovate/docusaurus-core-2.x-lockfile
  • internal-em
  • gh-269
  • gh-268
  • dependabot/npm_and_yarn/npm-6.13.4
  • refs/tags/v3.3.4
  • gh-380
  • refs/tags/v3.3.5
  • find-optios-schema
  • bigint
  • mongo-transactions
  • mongo-indexes
  • refs/tags/v3.4.0
  • refs/tags/v3.4.1
  • composite-pks
  • renovate/mongodb-3.x
  • fix-build
  • collection-diffs
  • collection-typings
  • refs/tags/v3.5.0
  • refs/tags/v3.5.1
  • refs/tags/v3.5.2
  • renovate/pg-8.x
  • ent-gen-index
  • refs/tags/v3.6.0
  • renovate/chalk-4.x
  • enums
  • refs/tags/v3.6.1
  • refs/tags/v3.6.2
  • dependabot/npm_and_yarn/docs/acorn-6.4.1
  • refs/tags/v3.6.3
  • refs/tags/v3.6.4
  • refs/tags/v3.6.5
  • refs/tags/v3.6.6
  • monorepo
  • refs/tags/v3.6.7
  • discovery-paths
  • refs/tags/v3.6.8
  • collection-add
  • gh491
  • renovate/docker-mariadb-10.x
  • gh494
  • refs/tags/v3.6.9
  • sti
  • refs/tags/v3.6.10
  • gh507
  • refs/tags/v3.6.11
  • embeddables
  • gh519
  • refs/tags/v3.6.12
  • subqueries
  • renovate/uuid-8.x
  • wrapped-entity
  • update-sub-query
  • remove-sub-query
  • refs/tags/v3.6.13
  • exceptions
  • paginate
  • property-default
  • formula
  • types
  • gh560
  • gh551
  • on-create-param
  • qb-select
  • metadata-caching
  • gh557
  • gh493
  • renovate/ts-jest-26.x
  • refs/tags/v3.6.14
  • lazy-props
  • refs/tags/v3.6.15
  • joined-strategy
  • dependabot/npm_and_yarn/docs/websocket-extensions-0.1.4
  • renovate/jest-26.x
  • gh603
  • renovate/major-commitlint-monorepo
  • subscribers
  • ts-morph-dts
  • schema-order
  • entities-globs
  • hook-params
  • flush-events
  • dependabot/npm_and_yarn/npm-registry-fetch-4.0.5
  • remove-flush-param
  • pnp-support
  • filters
  • dependabot/npm_and_yarn/docs/lodash-4.17.19
  • gh-678
  • gh-467
  • bulk-insert
  • type-safe-refs2
  • type-safe-repo
  • dependabot/npm_and_yarn/docs/elliptic-6.5.3
  • renovate/clone-2.x
  • transactions
  • highlighter
  • renovate/mysql2-digest
  • renovate/typescript-eslint-monorepo
  • renovate/acorn-loose-8.x
  • renovate/acorn-walk-8.x
  • renovate/docker-digests-pin
  • renovate/docker-postgres-12.x
  • renovate/docker-mstruebing-editorconfig-checker-2.x
  • bulk-delete
  • renovate/ts-morph-8.x
  • renovate/ts-node-9.x
  • escacya
  • renovate/rollback-escaya-0.x
  • renovate/escaya-0.x
  • custom-type-params
  • complex-qb-cases
  • dependabot/npm_and_yarn/bl-2.2.1
  • dependabot/npm_and_yarn/docs/http-proxy-1.18.1
  • initial-migrations
  • refs/tags/v4.0.0
  • cycles
  • gh-827
  • refs/tags/v4.0.1
  • dependabot/npm_and_yarn/node-fetch-2.6.1
  • refs/tags/v4.0.2
  • skip-merge
  • refs/tags/v4.0.3
  • perf-meta
  • refs/tags/v4.0.4
  • renovate/typescript-4.x
  • refs/tags/v4.0.5
  • refs/tags/v4.0.6
  • uow-batch-insert
  • refs/tags/v4.0.7
  • jit
  • refs/tags/v4.1.0
  • refs/tags/v4.1.1
  • map-to-pk
  • embed-obj
  • refs/tags/v4.2.0
  • renovate/actions-checkout-2.x
  • renovate/paambaati-codeclimate-action-2.x
  • refs/tags/v4.2.1
  • renovate/major-react-monorepo
  • refs/tags/v4.2.2
  • refs/tags/v4.2.3
  • tx-ctx
  • renovate/pin-dependencies
  • renovate/fs-extra-9.x
  • renovate/pg-7.x
  • renovate/webpack-env-1.x
  • renovate/eslint-7.x
  • renovate/eslint-plugin-jsdoc-30.x
  • renovate/husky-4.x
  • renovate/jest-monorepo
  • renovate/lint-staged-10.x
  • renovate/run-rs-0.x
  • renovate/docusaurus-monorepo
  • renovate/docusaurus-plugin-client-redirects-2.x
  • renovate/node-14.x
  • renovate/mariadb-2.x
  • renovate/react-monorepo
  • qb-join-and-select
  • renovate/knex-0.x
  • nightly
  • refs/tags/v4.3.0
  • refs/tags/v4.3.1
  • renovate/ts-morph-9.x
  • refs/tags/v4.3.2
  • refs/tags/v4.3.3
  • renovate/typedoc-plugin-markdown-3.x
  • renovate/docusaurus-plugin-typedoc-0.x
  • dependabot/npm_and_yarn/ini-1.3.7
  • refs/tags/v4.3.4
  • renovate/sqlstring-2.x
  • tx-hooks
  • dependabot/npm_and_yarn/node-notifier-8.0.1
  • renovate/typedoc-0.x
  • revert-1243-renovate/typedoc-0.x
  • renovate/globby-11.x
  • renovate/sqlite3-5.x
  • renovate/eslint-plugin-jsdoc-31.x
  • nested-partials
  • disabled-id-map
  • nested-embeddables
  • refs/tags/v4.4.0
  • refs/tags/v4.4.1
  • json-props
  • advanced-custom-types
  • refs/tags/v4.4.2
  • renovate/husky-5.x
  • refs/tags/v4.4.3
  • renovate/eslint-plugin-jsdoc-32.x
  • refs/tags/v4.4.4
  • renovate/ts-morph-10.x
  • embedded-arrays
  • env
  • col-matching
  • renovate/commitlint-monorepo
  • renovate/major-lerna-monorepo
  • dependabot/npm_and_yarn/docs/elliptic-6.5.4
  • refs/tags/v4.5.0
  • refs/tags/v4.5.1
  • dependabot/npm_and_yarn/docs/y18n-4.0.1
  • renovate/classnames-2.x
  • schema-diffing
  • refs/tags/v4.5.2
  • refs/tags/v4.5.3
  • 4.x
  • dependabot/npm_and_yarn/docs/ssri-6.0.2
  • strict-entity-data
  • strict-to-object
  • refs/tags/v4.5.4
  • renovate/eslint-plugin-jsdoc-33.x
  • renovate/fs-extra-10.x
  • renovate/dotenv-8.x
  • renovate/dotenv-9.x
  • renovate/mssql-7.x
  • renovate/postgres-13.x
  • dependabot/npm_and_yarn/docs/url-parse-1.5.1
  • renovate/lint-staged-11.x
  • dependabot/npm_and_yarn/docs/ua-parser-js-0.7.28
  • dependabot/npm_and_yarn/docs/postcss-8.2.14
  • renovate/eslint-plugin-jsdoc-34.x
  • renovate/faker-5.x
  • refs/tags/v4.5.5
  • refs/tags/v4.5.6
  • refs/tags/v4.5.7
  • renovate/all-non-major
  • renovate/eslint-plugin-jsdoc-36.x
  • renovate/jest-27.x
  • renovate/strip-json-comments-4.x
  • refs/tags/v4.5.8
  • refs/tags/v4.5.9
  • renovate/ts-morph-12.x
  • refs/tags/v4.5.10

10 Oct 2019 - 22:04 First build on query-typing at 100.0%
955

Pull #193

travis-ci-com

9181eb84f9c35729a3bad740fb7f9d93?size=18&default=identiconweb-flow
feat(core): simplify entity definition and rework typings of FilterQuery

Now it is no longer needed to merge entities with IEntity interface, that was polluting entity's interface with internal methods.
New interfaces IdEntity<T>, UuidEntity<T> and MongoEntity<T> are introduced, that should be implemented by entities. They
are not adding any new properties or methods, keeping the entity's interface clean.

This also introduces new strictly typed FilterQuery<T> implementation based on information provided by those new interfaces.

BREAKING CHANGES:
IEntity has been renamed to AnyEntity and it no longer has public methods like toJSON(), toObject() or init(). One can use wrap() method provided by ORM that
will enhance property type when needed with those methods (`await wrap(book.author).init()`). To keep all methods available on the
entity, you can still use interface merging with WrappedEntity that both extends AnyEntity and defines all those methods.
FilterQuery now does not allow using smart query operators. You can either cast your condition as any or use object syntax instead
(instead of `{ 'age:gte': 18 }` use `{ age: { $gte: 18 } }`).

Closes #124, #171
Pull Request #193: feat(core): simplify entity definition and rework typings of FilterQuery

8332 of 8332 branches covered (100.0%)

Branch coverage included in aggregate %.

307 of 307 new or added lines in 40 files covered. (100.0%)

14660 of 14660 relevant lines covered (100.0%)

5269.62 hits per line

Relevant lines Covered
14660 RELEVANT LINES 14660 COVERED LINES
Build:
5269.62 HITS PER LINE
Source Files on query-typing
  • Tree
  • List 500
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent Builds

Builds Branch Coverage Commit Committer Type Time Via
955 query-typing
100.0
feat(core): simplify entity definition and rework typings of FilterQuery Now it is no longer needed to merge entities with IEntity interface, that was polluting entity's interface with internal methods. New interfaces IdEntity<T>, UuidEntity<T> a... 9181eb84f9c35729a3bad740fb7f9d93?size=18&default=identiconweb-flow Pull #193 10 Oct 2019 10:11PM UTC travis-ci-com
954 query-typing
100.0
feat(core): simplify entity definition and rework typings of FilterQuery Now it is no longer needed to merge entities with IEntity interface, that was polluting entity's interface with internal methods. New interfaces IdEntity<T>, UuidEntity<T> a... 16ee09d7771cf9f7f66e1701c8e61cdc?size=18&default=identiconB4nan push 10 Oct 2019 10:07PM UTC travis-ci-com
953 query-typing
100.0
feat(core): simplify entity definition and rework typings of FilterQuery Now it is no longer needed to merge entities with IEntity interface, that was polluting entity's interface with internal methods. New interfaces IdEntity<T>, UuidEntity<T> a... 9181eb84f9c35729a3bad740fb7f9d93?size=18&default=identiconweb-flow Pull #193 10 Oct 2019 06:04PM UTC travis-ci-com
952 query-typing
100.0
feat(core): simplify entity definition and rework typings of FilterQuery Now it is no longer needed to merge entities with IEntity interface, that was polluting entity's interface with internal methods. New interfaces IdEntity<T>, UuidEntity<T> a... 16ee09d7771cf9f7f66e1701c8e61cdc?size=18&default=identiconB4nan push 10 Oct 2019 06:00PM UTC travis-ci-com
948 query-typing
100.0
feat(core): simplify entity definition and rework typings of FilterQuery Now it is no longer needed to merge entities with IEntity interface, that was polluting entity's interface with internal methods. New interfaces IdEntity<T>, UuidEntity<T> a... 16ee09d7771cf9f7f66e1701c8e61cdc?size=18&default=identiconB4nan push 10 Oct 2019 05:45PM UTC travis-ci-com
See All Builds (7893)
  • Repo on GitHub
Troubleshooting · Open an Issue · Sales · Support · ENTERPRISE · CAREERS · STATUS
BLOG · TWITTER · Legal & Privacy · Supported CI Services · What's a CI service? · Automated Testing

© 2022 Coveralls, Inc