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

Method get_primary_entity

graphlite/src/exec/result.rs:274–277  ·  view source on GitHub ↗

Get the primary entity ID for this row (if any) Used for simple identity comparisons

(&self)

Source from the content-addressed store, hash-verified

272 /// Get the primary entity ID for this row (if any)
273 /// Used for simple identity comparisons
274 pub fn get_primary_entity(&self) -> Option<&EntityId> {
275 // Return the first entity (useful for single-entity queries)
276 self.source_entities.values().next()
277 }
278
279 /// Check if this row has any tracked entities
280 pub fn has_entities(&self) -> bool {

Callers

nothing calls this directly

Calls 1

nextMethod · 0.80

Tested by

no test coverage detected