Skip to content

Commit 86e395a

Browse files
committed
graphql: Use defaults in build_range when 'first' or 'skip' are missing
1 parent 4911c90 commit 86e395a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graphql/src/store/query.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ fn build_range(
6666
Err("first")
6767
}
6868
}
69-
Some(q::Value::Null) => Ok(100),
69+
Some(q::Value::Null) | None => Ok(100),
7070
_ => unreachable!("first is an Int with a default value"),
7171
};
7272

@@ -79,7 +79,7 @@ fn build_range(
7979
Err("skip")
8080
}
8181
}
82-
Some(q::Value::Null) => Ok(0),
82+
Some(q::Value::Null) | None => Ok(0),
8383
_ => unreachable!("skip is an Int with a default value"),
8484
};
8585

0 commit comments

Comments
 (0)