Skip to main content
The Query interface allows you to run Cypher queries directly against your Context Graph. Use it for advanced exploration, data extraction, and complex relationship queries.

Access

Click Context Graph > Queries in the sidebar.

Interface Layout

Query Editor

The top panel contains the Cypher query editor:
Features:
  • Syntax highlighting for Cypher
  • Auto-completion suggestions
  • Query history access
  • Format/beautify option

Action Bar

  • Execute (Cmd+Enter) - Run the current query
  • Copy - Copy query to clipboard
  • Clear - Reset the editor

Example Queries Panel

Expandable section with optimized queries that work with backend limitations:

Results Panel

The right panel shows query results:
  • Ready to Query - Initial state before running
  • Results table - Query output in tabular format
  • Expand/Collapse - Toggle result row details

Running Queries

Basic Query

Returns the first 10 nodes in the graph.

Filter by Type

Returns repository names and URLs.

Find Relationships

Returns source-relationship-target triples.

Count by Type

Returns entity type distribution.

Search by Property

Finds entities with “production” in the name.

Query Best Practices

Always Use LIMIT

Optimize Relationship Queries

Use Property Filters Early

Keyboard Shortcuts

Query History

Click the history icon to see previous queries:
  • Recent queries listed by timestamp
  • Click to restore a query
  • Search through history

Exporting Results

Query results can be:
  • Copied to clipboard
  • Used as input for further analysis
For larger exports, use the Kubiya SDK or CLI.

Common Patterns

Find Dependencies

Find Resources by Label

Count Relationships

Error Handling

Common errors:
For most exploration tasks, use the Meta Agent with natural language instead of writing Cypher manually.