Skip to content

Add docs for dgo v250 #121

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 21, 2025
Merged
Show file tree
Hide file tree
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
9 changes: 2 additions & 7 deletions dgraph/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,8 @@
>
Read about what use cases are the best fit for graph databases
</Card>
<Card
title="New in Dgraph v24.1"
icon="square-plus"
href="https://hypermode.com/blog/dgraph-v241-knowledge-graphs-faster"
>
Explore the new query planner, faster writes, improved caching, and expanded
data capabilities
<Card title="Dgraph v25 Preview" icon="square-plus" href="./v25-preview">
Try out the new MCP server, namespaces, v2 APIs, and more

Check failure on line 42 in dgraph/overview.mdx

View check run for this annotation

Trunk.io / Trunk Check

vale(error)

[new] Spell out 'MCP', if it's unfamiliar to the audience.
</Card>
</CardGroup>

Expand Down
20 changes: 16 additions & 4 deletions dgraph/sdks/go.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<DgraphWIP />

[![GoDoc](https://godoc.org/github.com/dgraph-io/dgo?status.svg)](https://godoc.org/github.com/dgraph-io/dgo)
[![GoDoc](https://pkg.go.dev/badge/github.com/dgraph-io/dgo/v240)](https://pkg.go.dev/github.com/dgraph-io/dgo/v240)

The Go client communicates with the server on the gRPC port (default value
9080).
Expand All @@ -23,8 +23,21 @@
The full [GoDoc](https://godoc.org/github.com/dgraph-io/dgo) contains
documentation for the client API along with examples showing how to use it.

More details on the supported versions can be found at
[this link](https://github.com/hypermodeinc/dgo#supported-versions).
## Supported versions

Depending on the version of Dgraph that you are connecting to, you should use a
compatible version of this client and their corresponding import paths.

| Dgraph version | dgo version | dgo import path |
| -------------- | ----------- | ------------------------------- |
| dgraph 23.X.Y | dgo 230.X.Y | `github.com/dgraph-io/dgo/v230` |
| dgraph 24.X.Y | dgo 240.X.Y | `github.com/dgraph-io/dgo/v240` |
| dgraph 25.X.Y | dgo 250.X.Y | `github.com/dgraph-io/dgo/v250` |

<Tip>
Use the new v2 APIs with Dgraph v25. See the [v2
APIs](/dgraph/v25-preview#v2-apis)

Check failure on line 39 in dgraph/sdks/go.mdx

View check run for this annotation

Trunk.io / Trunk Check

vale(error)

[new] Use 'APIs' instead of 'apis'.
</Tip>

## Create the client

Expand Down Expand Up @@ -66,7 +79,6 @@
api.NewDgraphClient(d),
)
}

```

### Multi-tenancy
Expand Down
Loading