Skip to content

Commit

Permalink
fix(combine scalars): Bytes filter
Browse files Browse the repository at this point in the history
  • Loading branch information
unlight committed Dec 14, 2022
1 parent 29a3619 commit 6b0a156
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/handlers/combine-scalar-filters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,17 @@ function postBegin(args: EventArguments) {
const { schema } = args;
const inputTypes = schema.inputObjectTypes.prisma;
const enumTypes = schema.enumTypes.model || [];
const types = ['Bool', 'Int', 'String', 'DateTime', 'Decimal', 'Float', 'Json'];
const types = [
'Bool',
'Int',
'String',
'DateTime',
'Decimal',
'Float',
'Json',
'Bytes',
'BigInt',
];

for (const enumType of enumTypes) {
const { name } = enumType;
Expand Down
2 changes: 2 additions & 0 deletions src/test/combine-scalar-filters.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ describe('combine scalar filters', () => {
humanoid Boolean?
money Decimal?
data Json?
bytes Bytes?
bigint BigInt?
role Role?
}
enum Role {
Expand Down

0 comments on commit 6b0a156

Please sign in to comment.