Skip to content

Commit 61d002f

Browse files
committed
fix: suggestions from code review
1 parent 4d88942 commit 61d002f

File tree

1 file changed

+9
-1
lines changed
  • libs/@local/hashql/eval/src/graph/read

1 file changed

+9
-1
lines changed

libs/@local/hashql/eval/src/graph/read/path.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ pub(crate) enum PartialEntityMetadataPath<'heap> {
319319
TemporalVersioning(Option<PartialTemporalVersioningPath>),
320320
Archived,
321321
Confidence,
322+
EntityTypeIds,
322323
Provenance(Option<PartialEntityProvenancePath<'heap>>),
323324
Properties(Option<JsonPath<'heap>>),
324325
}
@@ -332,6 +333,7 @@ impl<'heap> PartialQueryPath<'heap> for PartialEntityMetadataPath<'heap> {
332333
sym::temporal_versioning::CONST => Some(Self::TemporalVersioning(None)),
333334
sym::archived::CONST => Some(Self::Archived),
334335
sym::confidence::CONST => Some(Self::Confidence),
336+
sym::entity_type_ids::CONST => Some(Self::EntityTypeIds),
335337
sym::provenance::CONST => Some(Self::Provenance(None)),
336338
sym::properties::CONST => Some(Self::Properties(None)),
337339
_ => None,
@@ -356,7 +358,7 @@ impl<'heap> PartialQueryPath<'heap> for PartialEntityMetadataPath<'heap> {
356358
.map(Some)
357359
.map(Self::Properties)
358360
.map_err(Self::Properties),
359-
Self::Archived | Self::Confidence => Err(self),
361+
Self::Archived | Self::Confidence | Self::EntityTypeIds => Err(self),
360362
}
361363
}
362364

@@ -377,6 +379,7 @@ impl<'heap> PartialQueryPath<'heap> for PartialEntityMetadataPath<'heap> {
377379
Self::TemporalVersioning(_)
378380
| Self::Archived
379381
| Self::Confidence
382+
| Self::EntityTypeIds
380383
| Self::Provenance(_) => Err(self),
381384
}
382385
}
@@ -392,6 +395,11 @@ impl<'heap> PartialQueryPath<'heap> for PartialEntityMetadataPath<'heap> {
392395

393396
Self::Archived => Some(EntityQueryPath::Archived),
394397
Self::Confidence => Some(EntityQueryPath::EntityConfidence),
398+
Self::EntityTypeIds => Some(EntityQueryPath::EntityTypeEdge {
399+
edge_kind: hash_graph_store::subgraph::edges::SharedEdgeKind::IsOfType,
400+
path: hash_graph_store::entity_type::EntityTypeQueryPath::VersionedUrl,
401+
inheritance_depth: Some(0),
402+
}),
395403

396404
Self::Provenance(Some(partial)) => partial.finish(),
397405
Self::Provenance(None) => None,

0 commit comments

Comments
 (0)