MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / limit

Method limit

sdk-rust/src/query.rs:227–230  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected