We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee8254b commit 9fa3b9dCopy full SHA for 9fa3b9d
contracts/okp4-cognitarium/src/querier/engine.rs
@@ -35,7 +35,12 @@ impl<'a> QueryEngine<'a> {
35
}
36
QueryNode::ForLoopJoin { left, right } => Box::new(move |_| Box::new(iter::empty())),
37
QueryNode::Skip { child, first } => Box::new(move |_| Box::new(iter::empty())),
38
- QueryNode::Limit { child, first } => Box::new(move |_| Box::new(iter::empty())),
+ QueryNode::Limit { child, first } => {
39
+ let upstream = self.eval_node(child);
40
+ Box::new(move |vars| -> ResolvedVariablesIterator {
41
+ Box::new(upstream(vars).take(first))
42
+ })
43
+ }
44
45
46
0 commit comments