Update cursor_connections.md

This commit is contained in:
Sunli 2021-04-05 12:27:47 +08:00
parent 7d817633f3
commit 3b45708959
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ impl Query {
first: Option<i32>,
last: Option<i32>,
) -> Result<Connection<usize, i32, EmptyFields, EmptyFields>> {
query(after, before, first, last, |after, before, first, last| {
query(after, before, first, last, |after, before, first, last| async move {
let mut start = after.map(|after| after + 1).unwrap_or(0);
let mut end = before.unwrap_or(10000);
if let Some(first) = first {