Skip to main content

Inspect an Entity

The single most useful query for exploring the graph: read everything about one entity by ID — its name, types, values, and relations. Use this whenever you've found an ID and want to see what's actually attached to it.

Query

query InspectEntity($id: UUID!) {
entity(id: $id) {
id
name
description
types { id name }
values(first: 50) {
totalCount
nodes {
propertyId
propertyEntity { name }
text
integer
float
boolean
date
datetime
}
}
relations(first: 50) {
totalCount
nodes {
id
typeEntity { name }
toEntity { id name }
}
}
}
}
{ "id": "9e49e5a95d2a41a6ba90cd84944080b5" }
Loading interactive query runner…

Response (excerpt)

{
"data": {
"entity": {
"id": "9e49e5a95d2a41a6ba90cd84944080b5",
"name": "Stable Diffusion",
"description": "Stable Diffusion is an open-source text-to-image diffusion model.",
"types": [
{ "id": "484a18c5030a499cb0f2ef588ff16d50", "name": "Project" }
],
"values": {
"totalCount": 4,
"nodes": [
{ "propertyId": "41aa3d9847b64a97b7ec427e575b910e", "propertyEntity": { "name": "Date founded" }, "date": "2022-08-22Z" },
{ "propertyId": "eed38e74e67946bf8a42ea3e4f8fb5fb", "propertyEntity": { "name": "Website" }, "text": "https://stability.ai/stable-image" },
{ "propertyId": "9b1f76ff9711404c861e59dc3fa7d037", "propertyEntity": { "name": "Description" }, "text": "Stable Diffusion is an open-source text-to-image diffusion model." },
{ "propertyId": "a126ca530c8e48d5b88882c734c38935", "propertyEntity": { "name": "Name" }, "text": "Stable Diffusion" }
]
},
"relations": {
"totalCount": 13,
"nodes": [
{ "id": "06c48709...", "typeEntity": { "name": "Blocks" }, "toEntity": { "id": "456aa04c...", "name": null } },
{ "id": "...", "typeEntity": { "name": "Topics" }, "toEntity": { "id": "...", "name": "Generative AI" } }
]
}
}
}
}

Notes

  • Values are a polymorphic union of typed scalars. Each Value node has fields for every scalar type (text, integer, float, boolean, date, datetime, etc.) — only the one matching the property's dataType is non-null. Always select all the types you might need; ignore the rest.
  • Relations target other entities, not values. To see "Stable Diffusion → Generative AI" as a relation, look in relations.nodes, not values.nodes.
  • toEntity { name } can be null — that means the target entity exists but has no Name property attached (orphan shells, often blocks). The relation still resolves; it just has no human label.
  • first: 50 is a soft cap, not a hard limit. If totalCount > 50, paginate with first + after.