-
-
Notifications
You must be signed in to change notification settings - Fork 754
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
015631f
commit 3d98e23
Showing
5 changed files
with
18 additions
and
111 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
97 changes: 2 additions & 95 deletions
97
...st/Data.Marten.Filters.Tests/__snapshots__/FilteringAndPaging.Paging_With_TotalCount.snap
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,105 +1,12 @@ | ||
--------------- | ||
schema { | ||
query: Query | ||
} | ||
|
||
type Foo { | ||
id: Int! | ||
bar: Boolean! | ||
} | ||
|
||
"Information about pagination in a connection." | ||
type PageInfo { | ||
"Indicates whether more edges exist following the set defined by the clients arguments." | ||
hasNextPage: Boolean! | ||
"Indicates whether more edges exist prior the set defined by the clients arguments." | ||
hasPreviousPage: Boolean! | ||
"When paginating backwards, the cursor to continue." | ||
startCursor: String | ||
"When paginating forwards, the cursor to continue." | ||
endCursor: String | ||
} | ||
|
||
type Query { | ||
root("Returns the first _n_ elements from the list." first: Int "Returns the elements in the list that come after the specified cursor." after: String "Returns the last _n_ elements from the list." last: Int "Returns the elements in the list that come before the specified cursor." before: String where: FooFilterInput): RootConnection | ||
rootExecutable("Returns the first _n_ elements from the list." first: Int "Returns the elements in the list that come after the specified cursor." after: String "Returns the last _n_ elements from the list." last: Int "Returns the elements in the list that come before the specified cursor." before: String where: FooFilterInput): RootExecutableConnection | ||
} | ||
|
||
"A connection to a list of items." | ||
type RootConnection { | ||
"Information to aid in pagination." | ||
pageInfo: PageInfo! | ||
"A list of edges." | ||
edges: [RootEdge!] | ||
"A flattened list of the nodes." | ||
nodes: [Foo] | ||
} | ||
|
||
"An edge in a connection." | ||
type RootEdge { | ||
"A cursor for use in pagination." | ||
cursor: String! | ||
"The item at the end of the edge." | ||
node: Foo | ||
} | ||
|
||
"A connection to a list of items." | ||
type RootExecutableConnection { | ||
"Information to aid in pagination." | ||
pageInfo: PageInfo! | ||
"A list of edges." | ||
edges: [RootExecutableEdge!] | ||
"A flattened list of the nodes." | ||
nodes: [Foo] | ||
} | ||
|
||
"An edge in a connection." | ||
type RootExecutableEdge { | ||
"A cursor for use in pagination." | ||
cursor: String! | ||
"The item at the end of the edge." | ||
node: Foo | ||
} | ||
|
||
input BooleanOperationFilterInput { | ||
eq: Boolean | ||
neq: Boolean | ||
} | ||
|
||
input FooFilterInput { | ||
and: [FooFilterInput!] | ||
or: [FooFilterInput!] | ||
id: IntOperationFilterInput | ||
bar: BooleanOperationFilterInput | ||
} | ||
|
||
input IntOperationFilterInput { | ||
eq: Int | ||
neq: Int | ||
in: [Int] | ||
nin: [Int] | ||
gt: Int | ||
ngt: Int | ||
gte: Int | ||
ngte: Int | ||
lt: Int | ||
nlt: Int | ||
lte: Int | ||
nlte: Int | ||
} | ||
--------------- | ||
|
||
true | ||
--------------- | ||
{ | ||
"data": { | ||
"root": { | ||
"nodes": [ | ||
{ | ||
"bar": true | ||
} | ||
] | ||
], | ||
"totalCount": 1 | ||
} | ||
} | ||
} | ||
--------------- |