type_bridge.crud.has_lookup¶
has_lookup
¶
Cross-type and narrowed attribute lookup.
Python owns public-call lowering and result hydration. Rust owns TypeQL construction and execution.
has_lookup
¶
Find all instances of kind that own attr_class, with optional filter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
connection
|
Connection
|
Database, Transaction, or TransactionContext. |
required |
attr_class
|
type[Attribute]
|
The attribute type to search for (e.g. |
required |
value
|
Any | None
|
Optional filter — may be:
- |
None
|
kind
|
Literal['entity', 'relation']
|
|
required |
type_name
|
str | None
|
Optional concrete TypeDB type name to narrow the match to. When set, results are restricted to that type and its subtypes. |
None
|
Returns:
| Type | Description |
|---|---|
list[TypeDBType]
|
Hydrated model instances (mixed concrete types). |