Skip to content

Commit

Permalink
fix: updated rapiq to v0.2.5 & updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tada5hi committed Oct 20, 2022
1 parent 060a887 commit 09226cb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
3 changes: 1 addition & 2 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,6 @@ export async function getUsers(req: Request, res: Response) {
// -----------------------------------------------------

const relations = parseQueryRelations(include, {
defaultAlias: 'user',
allowed: ['profile']
});

Expand Down Expand Up @@ -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' });

// -----------------------------------------------------

Expand Down
3 changes: 1 addition & 2 deletions docs/guide/query.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ export async function getUsers(req: Request, res: Response) {
// -----------------------------------------------------

const relations = parseQueryRelations(include, {
defaultAlias: 'user',
allowed: ['profile']
});

Expand Down Expand Up @@ -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' });

// -----------------------------------------------------

Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit 09226cb

Please sign in to comment.