generated from 47ng/typescript-library-starter
-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add support for filtering encrypted field in list of values
- Loading branch information
1 parent
78e0f2f
commit b231755
Showing
3 changed files
with
50 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -486,4 +486,25 @@ describe.each(clients)('integration ($type)', ({ client }) => { | |
createHash('sha256').update(longNameUser.name).digest('hex') | ||
) | ||
}, 15_000) // storing 4 MiB into the DB is a bit slow | ||
|
||
test('query entries in list', async () => { | ||
await client.user.create({ | ||
data: { | ||
name: 'Test User 1', | ||
email: '[email protected]' | ||
} | ||
}) | ||
await client.user.create({ | ||
data: { | ||
name: 'Test User 2', | ||
email: '[email protected]' | ||
} | ||
}) | ||
|
||
const foundUserCount = await client.user.count({ | ||
where: { name: { in: ['Test User 1', 'Test User 2'] } } | ||
}) | ||
|
||
expect(foundUserCount).toBe(2) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters