@uql/sqlite
Advanced tools
Comparing version 0.4.22 to 0.4.23
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "0.4.22", | ||
"version": "0.4.23", | ||
"main": "index.js", | ||
@@ -25,3 +25,3 @@ "types": "index.d.ts", | ||
"@types/sqlite3": "^3.1.7", | ||
"@uql/core": "^0.4.22", | ||
"@uql/core": "^0.4.23", | ||
"copyfiles": "^2.4.1", | ||
@@ -28,0 +28,0 @@ "rimraf": "^3.0.2", |
@@ -486,2 +486,3 @@ [![build status](https://travis-ci.org/impensables/uql.svg?branch=master)](https://travis-ci.org/impensables/uql?branch=master) | ||
import { hasKeys } from '@uql/core/util'; | ||
import { getMeta } from '@uql/core/entity/decorator'; | ||
import { querierMiddleware } from '@uql/express'; | ||
@@ -504,3 +505,3 @@ | ||
qm.$limit = obtainValidLimit(qm.$limit); | ||
const prefix = hasKeys(qm.$populate) ? type.name + '.' : ''; | ||
const prefix = hasKeys(qm.$populate) ? getMeta(type).name + '.' : ''; | ||
qm.$filter = { | ||
@@ -542,4 +543,4 @@ ...qm.$filter, | ||
const users = await userRepository.findMany({ | ||
$populate: { profile: { $project: ['picture'] } }, | ||
$filter: { name: { $startsWith: 'lorem' } }, | ||
$populate: { profile: { $project: ['picture'] } }, | ||
$sort: { createdAt: -1 }, | ||
@@ -546,0 +547,0 @@ $limit: 100, |
28153
557