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

wherePipe with nested object & multiple nested object #11

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ https://example.com/?sortBy=firstName:asc

**array** - `where=zipCode: in array(int(111111), int(222222))`

**nested object** - `where=user.firstName: contains string(Jhon)`

**multiple nested object** - `where=user.data.account.role: contains string(Admin)`

```typescript
@Query('where', WherePipe) where?: Pipes.Where
```
Expand Down
2 changes: 2 additions & 0 deletions dist/src/helpers/delimeted-string-object.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare function delimetedStringObject(n: string[], v: any, d?: string): object;
export default delimetedStringObject;
13 changes: 13 additions & 0 deletions dist/src/helpers/delimeted-string-object.js

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

1 change: 1 addition & 0 deletions dist/src/helpers/delimeted-string-object.js.map

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

5 changes: 1 addition & 4 deletions dist/src/helpers/parse-object-literal.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
declare const parseObjectLiteral: (objectLiteralString: string) => [
string,
string | undefined
][];
declare const parseObjectLiteral: (objectLiteralString: string) => [string, string | undefined][];
export default parseObjectLiteral;
16 changes: 12 additions & 4 deletions dist/src/prisma/where.pipe.js

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

2 changes: 1 addition & 1 deletion dist/src/prisma/where.pipe.js.map

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

88 changes: 88 additions & 0 deletions dist/test/prisma/where.pipe.spec.js

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

Loading