GORMPlayground Playground v0.2.6 · GORM 3.2.0
LINQ → GRAPH INTENT → SQL

Change the query.
See what GORM sees.

Edit a focused GORM query and inspect four views at once: C# intent, graph/query anatomy, translation diagnostics and the resulting SQL Server Graph shape.

Documentation preview

Enable the optional .NET WebAssembly runtime for verified presets, mapped Name/State filters (including Name AND/OR State), and editable one- and two-hop graph traversals. Unsupported C# remains illustrative; no arbitrary code or SQL Server is executed.

TRANSLATOR ENGINE

Resolving translator…

VERSION—
EXECUTION—
AUTHORITY—
DOCUMENTATION CONTRACTS

Checking examples…

Browse examples
C# / GORMQuery.cs
Ready
SQL SERVER GRAPHGenerated SQL shape
QUERY ANATOMYHow the expression is interpreted
Waiting for query
TRANSLATION PIPELINEFrom expression to provider shape
PARAMETERS & DIAGNOSTICSWhat should be bound or reviewed
WHY THIS MATTERS

Graph intent should be inspectable.

The query anatomy separates node roots, scalar predicates, traversal direction, edge types, targets, temporal context and limits. The inspector then shows which translation stages and parameters are involved.

SHARE EXACT REPRODUCTIONS

Every custom query can become a permalink.

Use Share query to encode the editor state in the URL. The SQL panel always identifies whether the displayed query used GORM WebAssembly or the illustrative JavaScript fallback.

RUNTIME INTEGRATION CONTRACT

The UI depends on one translator contract.

The playground shell owns editor state and sharing. The runtime owns translation and rendering. The bounded GORM WebAssembly runtime implements metadata plus an async-compatible translate(query) function, while the example contracts continuously verify the documented behavior.

window.GormPlaygroundEngine = {
    metadata: {
        id: "gorm-runtime",
        label: "GORM runtime",
        version: "1.0.0",
        authoritative: true,
        execution: "sandboxed .NET"
    },
    translate: async query => ({ ok, sql, notes, model })
};
SUPPORTED IN THIS PREVIEW

Useful patterns, explicit limits.

Node rootSet<TNode>()
PredicatesWhere(Id / Name / State / Region)
TraversalOutgoing / Incoming / chained hops
Ordering & limitsOrderBy, Skip, Take
TemporalAsOf(...)
Relationship loadInclude(...)