-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
further simply query constraints type
- Loading branch information
Showing
11 changed files
with
69 additions
and
81 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
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 |
---|---|---|
@@ -1,24 +1,23 @@ | ||
import { MetaType } from '../metaTypeCreator' | ||
import { WhereFilterOp } from '../alias' | ||
import { CursorType, CursorConstraint } from './cursor' | ||
import { WhereConstraint } from './where' | ||
import { LimitConstraint } from './limit' | ||
import { OrderByConstraint } from './orderBy' | ||
import { QueryCompositeFilterConstraint } from './composite' | ||
|
||
type QueryNonFilterConstraints<T extends MetaType> = | ||
type QueryNonFilterConstraints = | ||
| LimitConstraint<'limit' | 'limitToLast'> | ||
| CursorConstraint<CursorType, unknown[]> | ||
| OrderByConstraint<string> | ||
|
||
export type QueryConstraints<T extends MetaType> = | ||
export type QueryConstraints = | ||
| WhereConstraint<string, WhereFilterOp, unknown> | ||
| QueryNonFilterConstraints<T> | ||
| QueryNonFilterConstraints | ||
|
||
export type QueryFilterConstraints<T extends MetaType> = | ||
export type QueryFilterConstraints = | ||
| WhereConstraint<string, WhereFilterOp, unknown> | ||
| QueryCompositeFilterConstraint<T, 'and' | 'or', QueryFilterConstraints<T>[]> | ||
| QueryCompositeFilterConstraint<'and' | 'or', QueryFilterConstraints[]> | ||
|
||
export type QueryAllConstraints<T extends MetaType> = | ||
| QueryConstraints<T> | ||
| QueryCompositeFilterConstraint<T, 'and' | 'or', QueryFilterConstraints<T>[]> | ||
export type QueryAllConstraints = | ||
| QueryConstraints | ||
| QueryCompositeFilterConstraint<'and' | 'or', QueryFilterConstraints[]> |
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
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
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
Oops, something went wrong.