Set the LIMIT value Limits the number of results returned. # Arguments `n` - Maximum number of results to return # Examples ```no_run # use graphlite_sdk::GraphLite; # let db = GraphLite::open("./mydb")?; # let session = db.session("admin")?; session.query_builder() .match_pattern("(p:Person)") .return_clause("p") .limit(10); // Return max 10 results # Ok::<(), graphlite_sdk::Error>(()) ```
(mut self, n: usize)
| 225 | /// # Ok::<(), graphlite_sdk::Error>(()) |
| 226 | /// ``` |
| 227 | pub fn limit(mut self, n: usize) -> Self { |
| 228 | self.limit = Some(n); |
| 229 | self |
| 230 | } |
| 231 | |
| 232 | /// Build the query string without executing |
| 233 | /// |
nothing calls this directly
no outgoing calls
no test coverage detected