.show graph_model (preview)

Applies to: ✅ Azure Data Explorer

Note

This feature is currently in public preview. Functionality and syntax are subject to change before General Availability.

Shows the details of a specific graph model, including its versions.

Permissions

To run this command, the user needs Database viewer permissions.

Syntax

.show graph_model GraphModelName [with (Property = Value [, ...])]

.show graph_model GraphModelName details

Parameters

Name Type Required Description
GraphModelName String The name of the graph model to show.
Property String A property to control which version(s) to show. See Properties.
Value String The value of the corresponding property.
details Keyword When specified, returns more detailed information about the graph model.

Properties

Name Type Required Description
id String The specific version identifier (GUID) of the graph model to show. Use * to show all versions. If not specified, the latest version is shown.

Returns

The command returns different output depending on which syntax is used:

Basic command (without details)

When using the basic .show graph_model command (without the details keyword), the command returns a table with the following columns:

Column Type Description
Name String The name of the graph model.
CreationTime DateTime The date and time when the graph model was created.
Id String The identifier of the graph model version (a GUID).

Details command

When using the .show graph_model command with the details keyword, the command returns a more detailed table with the following columns:

Column Type Description
Name String The name of the graph model.
CreationTime DateTime The date and time when the graph model was created.
Id String The identifier of the graph model version (a GUID).
SnapshotCount Long The number of snapshots in the graph model.
Model Dynamic A JSON object containing the complete model definition and properties.

Examples

Show the latest version of a graph model

.show graph_model SocialNetwork

Output

Name CreationTime Id
SocialNetwork 2025-04-23T14:32:18Z aaaaaaaa-0b0b-1c1c-2d2d-333333333333

Show a specific version of a graph model

.show graph_model ProductRecommendations with (id = "cccccccc-2d2d-3e3e-4f4f-555555555555")

Output

Name CreationTime Id
ProductRecommendations 2025-04-15T09:45:12Z cccccccc-2d2d-3e3e-4f4f-555555555555

Show all versions of a graph model

.show graph_model NetworkTraffic with (id = "*")

Output

Name CreationTime Id
NetworkTraffic 2025-03-10T13:24:56Z bbbbbbbb-1c1c-2d2d-3e3e-444444444444
NetworkTraffic 2025-03-25T10:15:22Z cccccccc-2d2d-3e3e-4f4f-555555555555
NetworkTraffic 2025-04-12T15:42:18Z dddddddd-3e3e-4f4f-5a5a-666666666666

Show detailed information about a graph model

.show graph_model SocialNetwork details

Output

Name CreationTime Id SnapshotCount Model
SocialNetwork 2025-04-23T14:32:18Z aaaaaaaa-0b0b-1c1c-2d2d-333333333333 12 {}

Notes

  • The .show graph_model command is useful for examining the history and evolution of a specific graph model.
  • When showing all versions of a graph model, the results are ordered by creation date, with the oldest version first.
  • Use the details keyword when you need to see the complete model definition and additional metadata.
  • The Model column in the detailed output contains the complete JSON definition of the graph model, which might be large for complex models.
  • Use the basic command (without details) for a more concise overview when you don't need the full model definition.