-
-
Notifications
You must be signed in to change notification settings - Fork 749
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for taking between both cursors in ef (#7806)
- Loading branch information
1 parent
b0c4e1c
commit a570145
Showing
4 changed files
with
128 additions
and
2 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
27 changes: 27 additions & 0 deletions
27
...tion.Tests/__snapshots__/IntegrationTests.Paging_Fetch_First_2_Items_Between.md
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,27 @@ | ||
# Paging_Fetch_First_2_Items_Between | ||
|
||
```json | ||
{ | ||
"data": { | ||
"brands": { | ||
"nodes": [ | ||
{ | ||
"name": "Brand1" | ||
}, | ||
{ | ||
"name": "Brand2" | ||
} | ||
], | ||
"pageInfo": { | ||
"hasNextPage": true, | ||
"hasPreviousPage": true, | ||
"endCursor": "Mw==", | ||
"startCursor": "Mg==" | ||
} | ||
} | ||
}, | ||
"extensions": { | ||
"sql": "-- @__p_0='1'\n-- @__p_1='4'\n-- @__p_2='3'\nSELECT b.\"Id\", b.\"AlwaysNull\", b.\"DisplayName\", b.\"Name\", b.\"BrandDetails_Country_Name\"\nFROM \"Brands\" AS b\nWHERE b.\"Id\" > @__p_0 AND b.\"Id\" < @__p_1\nORDER BY b.\"Id\"\nLIMIT @__p_2" | ||
} | ||
} | ||
``` |
27 changes: 27 additions & 0 deletions
27
...ation.Tests/__snapshots__/IntegrationTests.Paging_Fetch_Last_2_Items_Between.md
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,27 @@ | ||
# Paging_Fetch_Last_2_Items_Between | ||
|
||
```json | ||
{ | ||
"data": { | ||
"brands": { | ||
"nodes": [ | ||
{ | ||
"name": "Brand97" | ||
}, | ||
{ | ||
"name": "Brand98" | ||
} | ||
], | ||
"pageInfo": { | ||
"hasNextPage": true, | ||
"hasPreviousPage": true, | ||
"endCursor": "OTk=", | ||
"startCursor": "OTg=" | ||
} | ||
} | ||
}, | ||
"extensions": { | ||
"sql": "-- @__p_0='97'\n-- @__p_1='100'\n-- @__p_2='3'\nSELECT b.\"Id\", b.\"AlwaysNull\", b.\"DisplayName\", b.\"Name\", b.\"BrandDetails_Country_Name\"\nFROM \"Brands\" AS b\nWHERE b.\"Id\" > @__p_0 AND b.\"Id\" < @__p_1\nORDER BY b.\"Id\" DESC\nLIMIT @__p_2" | ||
} | ||
} | ||
``` |