-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(@nftx/subgraph): rework and/or operators to work together nicely
we recently added support for OR operators, however if you use an AND operator in the same clause, it would not work. This fix does some additional work to massage the output into nested and/or clauses in order to create a valid query. As part of this fix the createQuery method has been refactored to be easier to understand and maintain.
- Loading branch information
1 parent
da2caec
commit 143e76f
Showing
14 changed files
with
575 additions
and
487 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export type WithoutNull<T> = { | ||
[K in keyof T]: Exclude<T[K], null>; | ||
}; | ||
|
||
export type Defined<T> = WithoutNull<Required<T>>; |
Oops, something went wrong.