Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 0 additions & 43 deletions dgraph/v25-preview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -155,30 +155,6 @@ defer client.Close()
// use the client
```

### Connect to Hypermode Graph

You can use either `Open` or `NewClient` to connect to a Hypermode Graph.
Hypermode automatically handles load balancing in multi-node clusters.

Using `Open` with a connection string:

```go
client, err := dgo.Open("dgraph://<graph-workspace>.hypermode.host?sslmode=verify-ca&bearertoken=<bearer-token>")
// handle error
defer client.Close()
```

Using `NewClient`:

```go
client, err := dgo.NewClient("<graph-workspace>.hypermode.host:443",
dgo.WithBearerToken("<bearer-token>"),
dgo.WithSystemCertPool(),
)
// handle error
defer client.Close()
```

### Set schema

To set the schema, use the `SetSchema` function.
Expand Down Expand Up @@ -372,27 +348,8 @@ assistants:
To add the MCP server to your coding assistant, add the following to your
configuration file:

When using Hypermode Graphs, the MCP configuration is available on the graph
details screen in the console.

<CodeGroup>

```json Hypermode
{
"mcpServers": {
"hypermode-graph": {
"command": "npx",
"args": [
"mcp-remote",
"https://<graph-workspace>.hypermode.host/mcp/sse",
"--header",
"Authorization: Bearer <bearer-token>"
]
}
}
}
```

```json local
{
"mcpServers": {
Expand Down