-
-
Notifications
You must be signed in to change notification settings - Fork 748
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
e88b11a
commit aca4e59
Showing
11 changed files
with
1,890 additions
and
755 deletions.
There are no files selected for viewing
2,405 changes: 1,693 additions & 712 deletions
2,405
src/HotChocolate/Core/src/Types/Properties/TypeResources.Designer.cs
Large diffs are not rendered by default.
Oops, something went wrong.
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
File renamed without changes.
File renamed without changes.
34 changes: 34 additions & 0 deletions
34
...e/Core/test/Execution.Tests/__snapshots__/SemanticNonNullTests.Query_With_Connection.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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"errors": [ | ||
{ | ||
"message": "Unexpected Execution Error", | ||
"locations": [ | ||
{ | ||
"line": 4, | ||
"column": 7 | ||
} | ||
], | ||
"path": [ | ||
"scalarConnection", | ||
"edges", | ||
1, | ||
"node" | ||
] | ||
} | ||
], | ||
"data": { | ||
"scalarConnection": { | ||
"edges": [ | ||
{ | ||
"node": "a" | ||
}, | ||
{ | ||
"node": null | ||
}, | ||
{ | ||
"node": "c" | ||
} | ||
] | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...xecution.Tests/__snapshots__/SemanticNonNullTests.Query_With_NullableConnectionNodes.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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"data": { | ||
"nullableScalarConnection": { | ||
"edges": [ | ||
{ | ||
"node": "a" | ||
}, | ||
{ | ||
"node": null | ||
}, | ||
{ | ||
"node": "c" | ||
} | ||
] | ||
} | ||
} | ||
} |
31 changes: 0 additions & 31 deletions
31
src/HotChocolate/Core/test/Execution.Tests/__snapshots__/SemanticNonNullTests.Test3.snap
This file was deleted.
Oops, something went wrong.
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
56 changes: 56 additions & 0 deletions
56
src/HotChocolate/Core/test/Types.Tests/__snapshots__/SemanticNonNullTests.Pagination.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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
schema { | ||
query: QueryWithPagination | ||
} | ||
|
||
"Information about the offset pagination." | ||
type CollectionSegmentInfo { | ||
"Indicates whether more items exist following the set defined by the clients arguments." | ||
hasNextPage: Boolean! | ||
"Indicates whether more items exist prior the set defined by the clients arguments." | ||
hasPreviousPage: Boolean! | ||
} | ||
|
||
"A connection to a list of items." | ||
type CursorPaginationConnection { | ||
"Information to aid in pagination." | ||
pageInfo: PageInfo @semanticNonNull | ||
"A list of edges." | ||
edges: [CursorPaginationEdge] @semanticNonNull(levels: [ 1 ]) | ||
"A flattened list of the nodes." | ||
nodes: [String] @semanticNonNull(levels: [ 1 ]) | ||
} | ||
|
||
"An edge in a connection." | ||
type CursorPaginationEdge { | ||
"A cursor for use in pagination." | ||
cursor: String @semanticNonNull | ||
"The item at the end of the edge." | ||
node: String @semanticNonNull | ||
} | ||
|
||
"A segment of a collection." | ||
type OffsetPaginationCollectionSegment { | ||
"Information to aid in pagination." | ||
pageInfo: CollectionSegmentInfo @semanticNonNull | ||
"A flattened list of the items." | ||
items: [String] @semanticNonNull(levels: [ 1 ]) | ||
} | ||
|
||
"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 QueryWithPagination { | ||
cursorPagination("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): CursorPaginationConnection | ||
offsetPagination(skip: Int take: Int): OffsetPaginationCollectionSegment | ||
} | ||
|
||
directive @semanticNonNull(levels: [Int!] = [ 0 ]) on FIELD_DEFINITION |