How the graph is organized
Assets are represented as nodes. Each node has an ID, labels describing what it is, and properties containing its details. A Supabase database, for example, has bothSupabaseDatabase and Database labels. Its properties include its hostname and database version. These labels let you query a specific integration’s resources or work across integrations using a shared category.
Edges describe directed relationships between nodes. A HAS_DATABASE edge connects a Supabase project to its database. A RESOURCE edge connects an account or organization to the resources it contains.
The available labels, properties, and relationships depend on the integrations connected to your map.
Retrieve assets and their connections
Callantigen.assetMap.get() with one or more asset IDs. Set depth to control how far to explore their connections.
depth to 2 also includes assets connected to those neighbors.
Connections are followed in both directions. Each returned edge retains its original direction, so you can distinguish a project’s database from the organization that contains the project.
Parameters
Return value
The result containsnodes and edges arrays. Nodes appear once in the result, even when several paths lead to them. Each edge references nodes in the returned array through fromId and toId.
Query the map
Useantigen.assetMap.query() when you want to select assets by their properties, follow particular relationships, or compute values such as resource counts.
Build the query with Neo4j’s Cypher Builder:
Cypher.Param supplies the region as a query parameter. The aliases in .return() name the fields in each result:
Parameters
Return value
Returns an array of rows. Each row contains the fields selected by the query. A query with no matches returns an empty array. Queries can select properties, nodes, relationships, paths, and aggregate values. Returned nodes and edges use the same representation asget(). Paths contain nodes and edges arrays.
The builder provides TypeScript types for constructing queries. Label names, property names, and result fields depend on the graph schema.