diff --git a/README.MD b/README.MD index 3b109594..6e8aa34e 100644 --- a/README.MD +++ b/README.MD @@ -539,7 +539,6 @@ export async function getUsers(req: Request, res: Response) { // ----------------------------------------------------- const relations = parseQueryRelations(include, { - defaultAlias: 'user', allowed: ['profile'] }); @@ -568,7 +567,7 @@ export async function getUsers(req: Request, res: Response) { // only allow to select 20 items at maximum. const pagination = applyQueryPagination(query, page, {maxLimit: 20}); - applyQueryRelationsParseOutput(query, relations); + applyQueryRelationsParseOutput(query, relations, { defaultAlias: 'user' }); // ----------------------------------------------------- diff --git a/docs/guide/query.md b/docs/guide/query.md index 80128e69..880742e6 100644 --- a/docs/guide/query.md +++ b/docs/guide/query.md @@ -96,7 +96,6 @@ export async function getUsers(req: Request, res: Response) { // ----------------------------------------------------- const relations = parseQueryRelations(include, { - defaultAlias: 'user', allowed: ['profile'] }); @@ -125,7 +124,7 @@ export async function getUsers(req: Request, res: Response) { // only allow to select 20 items at maximum. const pagination = applyQueryPagination(query, page, {maxLimit: 20}); - applyQueryRelationsParseOutput(query, relations); + applyQueryRelationsParseOutput(query, relations, { defaultAlias: 'user' }); // ----------------------------------------------------- diff --git a/package-lock.json b/package-lock.json index c90d5c86..421f3843 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "dependencies": { "@faker-js/faker": "^7.6.0", "locter": "^0.3.2", - "rapiq": "^0.2.4", + "rapiq": "^0.2.5", "reflect-metadata": "^0.1.13", "yargs": "^17.6.0" }, @@ -12533,9 +12533,9 @@ } }, "node_modules/rapiq": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/rapiq/-/rapiq-0.2.4.tgz", - "integrity": "sha512-+P8OcNN86oS3q0rfwAGy66SCcTa8F7g0rhQc6aXxvRsEPcb2XiPla+TXB55yzpswnvwaxsfHAZ3Y87AVZYCcug==", + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/rapiq/-/rapiq-0.2.5.tgz", + "integrity": "sha512-kctz0zZud6C33Rkdc70eJmmA4THHXsj34Z1bvcysc/lm+nxnoCNElRunP5xxHJuNKcixd/cMWIcczq8UmSCmoA==", "dependencies": { "minimatch": "^5.1.0", "smob": "^0.0.6" @@ -24246,9 +24246,9 @@ "dev": true }, "rapiq": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/rapiq/-/rapiq-0.2.4.tgz", - "integrity": "sha512-+P8OcNN86oS3q0rfwAGy66SCcTa8F7g0rhQc6aXxvRsEPcb2XiPla+TXB55yzpswnvwaxsfHAZ3Y87AVZYCcug==", + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/rapiq/-/rapiq-0.2.5.tgz", + "integrity": "sha512-kctz0zZud6C33Rkdc70eJmmA4THHXsj34Z1bvcysc/lm+nxnoCNElRunP5xxHJuNKcixd/cMWIcczq8UmSCmoA==", "requires": { "minimatch": "^5.1.0", "smob": "^0.0.6" diff --git a/package.json b/package.json index f4c4dca0..16b59387 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "dependencies": { "@faker-js/faker": "^7.6.0", "locter": "^0.3.2", - "rapiq": "^0.2.4", + "rapiq": "^0.2.5", "reflect-metadata": "^0.1.13", "yargs": "^17.6.0" },