Skip to content

Commit da7274e

Browse files
authored
Merge pull request #198 from hypercerts-org/feat/order_filters
Add currency and invalidation status as filters
2 parents a6db8ef + 1797348 commit da7274e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

schema.graphql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -813,8 +813,10 @@ input OrderSortOptions {
813813

814814
input OrderWhereInput {
815815
chainId: BigIntSearchOptions
816+
currency: StringSearchOptions
816817
hypercert_id: StringSearchOptions
817818
id: IdSearchOptions
819+
invalidated: BooleanSearchOptions
818820
signer: StringSearchOptions
819821
}
820822

src/graphql/schemas/inputs/orderInput.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
IdSearchOptions,
55
BigIntSearchOptions,
66
StringSearchOptions,
7+
BooleanSearchOptions,
78
} from "./searchOptions.js";
89
import { Order } from "../typeDefs/orderTypeDefs.js";
910

@@ -17,4 +18,8 @@ export class BasicOrderWhereInput implements WhereOptions<Order> {
1718
signer?: StringSearchOptions | null;
1819
@Field(() => StringSearchOptions, { nullable: true })
1920
hypercert_id?: StringSearchOptions | null;
21+
@Field(() => BooleanSearchOptions, { nullable: true })
22+
invalidated?: BooleanSearchOptions | null;
23+
@Field(() => StringSearchOptions, { nullable: true })
24+
currency?: StringSearchOptions | null;
2025
}

0 commit comments

Comments
 (0)