Basic Queries
Get a Single Object by ID
Retrieve an object using its unique identifier:Get All Objects of a Kind
Retrieve all objects of a specific type:Get with Specific Attributes
Retrieve an object with specific attribute values:Including Relationships
Include Related Objects
Fetch related data in a single query:Include Nested Relationships
Include All Relationships
Property Mode
Fetch with Property Metadata
Retrieve additional property information:Property mode includes metadata like:
updated_at: When the attribute was last modifiedis_from_profile: Whether the value comes from a profilesource: The source of the attribute valueowner: Who owns/set the value
Filtering Results
Filter by Attribute Values
While the SDK doesn’t provide built-in filtering onall(), you can filter in Python:
Custom GraphQL Queries
For complex filtering, use custom GraphQL queries:Accessing Attributes
Basic Attribute Access
Attributes are accessed with.value:
Attribute Types
Different attribute kinds:Accessing Relationships
Single Cardinality Relationships
Relationships with cardinality “one”:Multiple Cardinality Relationships
Relationships with cardinality “many”:Relationship Metadata
Querying on Branches
Query on a Specific Branch
Compare Across Branches
Handling Missing Data
Check for None Values
Handle Missing Relationships
Try-Except for Not Found
Querying Schema
Fetch Schema Information
Check Schema Sync Status
Performance Optimization
Batch Queries
Query multiple objects efficiently:Limit Included Relationships
Only include what you need:Use Pagination
For large datasets, use pagination (see Pagination guide):Common Query Patterns
Get Object with Full Context
Search by Attribute Value
Count Objects
Next Steps
Creating Objects
Learn how to create new infrastructure objects
Updating Objects
Update existing objects and attributes
Relationships
Work with object relationships
Pagination
Handle large datasets with pagination