Search
ctrl/
Ask AI
Light
Dark
System

Objects

Subtopics

Together, the sequence of links and property navigation creates a path expression. Each path expression denotes a set of objects (if it terminates with a link) or scalars (if it terminates with a property).

A path expression that terminates with a link may be surprising at first:

Input
Run
Output Objects
Press the 'Run' button to evaluate the input

This is because all objects have an id, which is the only property displayed by default if we do not specify a shape to return. Adding a shape to the query with one or more properties will replace the default id output with the property or properties in the shape:

Input
Run
Output Objects
Press the 'Run' button to evaluate the input

Note the difference between specifying a shape for an object and a path that simply terminates with a property.

In the query above the title property is used to specify a shape for a query on Content objects (instead of just showing the id), while in the following query only a set of the title property — a set of str scalars — is returned.

Input
Run
Output Objects
Press the 'Run' button to evaluate the input