# \#dgo

**URL:** https://discuss.dgraph.io/tag/dgo/83.md

[Latest](https://discuss.dgraph.io/latest.md) · [Categories](https://discuss.dgraph.io/categories.md) · [Tags](https://discuss.dgraph.io/tags.md)

---

## [DGO client does not handle replica failure since it does not have a proper connection pool](https://discuss.dgraph.io/t/dgo-client-does-not-handle-replica-failure-since-it-does-not-have-a-proper-connection-pool/18226)

<div class="topic-metadata">

**Author:** [@alexeevaa](https://discuss.dgraph.io/u/alexeevaa)\
**Replies:** 0\
**Last updated:** [February 1, 2023, 4:54pm UTC](https://discuss.dgraph.io/t/dgo-client-does-not-handle-replica-failure-since-it-does-not-have-a-proper-connection-pool/18226 "2023-02-01T16:54:50Z")

</div>

Once replica fails, its grpc connection is still present in a makeshift pool of DGO client. This leads to a stream of unnecessary errors while cluster is actually available. This is especially important in case you build…

---

## [Mocking Dgraph](https://discuss.dgraph.io/t/mocking-dgraph/17460)

<div class="topic-metadata">

**Author:** [@Ohm\_Patel](https://discuss.dgraph.io/u/Ohm_Patel)\
**Replies:** 8\
**Last updated:** [November 15, 2022, 5:23pm UTC](https://discuss.dgraph.io/t/mocking-dgraph/17460 "2022-11-15T17:23:57Z")

</div>

What Dgraph client (and version) are you using? (put “x” in the box to select) Dgo PyDgraph Dgraph4J Dgraph-js Dgraph-js-http Dgraph.NET I am currently figuring out a way to mock the dgraph client so that I can …

---

## [Distributed Tracing through the dgo client](https://discuss.dgraph.io/t/distributed-tracing-through-the-dgo-client/13740)

<div class="topic-metadata">

**Author:** [@dharmjit](https://discuss.dgraph.io/u/dharmjit)\
**Replies:** 15\
**Last updated:** [October 14, 2022, 10:32pm UTC](https://discuss.dgraph.io/t/distributed-tracing-through-the-dgo-client/13740 "2022-10-14T22:32:26Z")

</div>

Hello Team, For my services Distributed Tracing needs, I am using opencensus and the good thing is it already has integrations to capture grpc/http/sql logs. I know that Dgraph provides distributed traces but these are …

---

## [Query a node after insert without commit using the same transaction](https://discuss.dgraph.io/t/query-a-node-after-insert-without-commit-using-the-same-transaction/15924)

<div class="topic-metadata">

**Author:** [@zdima](https://discuss.dgraph.io/u/zdima)\
**Replies:** 3\
**Last updated:** [October 31, 2021, 4:59pm UTC](https://discuss.dgraph.io/t/query-a-node-after-insert-without-commit-using-the-same-transaction/15924 "2021-10-31T16:59:06Z")

</div>

Hi Is transactions support access to added/altered data before it is committed, while using the same transaction object? I am inserting a node without commit and want to query data back by uid using the same transactio…

---

## [Golang dgraph client connection error](https://discuss.dgraph.io/t/golang-dgraph-client-connection-error/14646)

<div class="topic-metadata">

**Author:** [@taemon](https://discuss.dgraph.io/u/taemon)\
**Replies:** 9\
**Last updated:** [June 19, 2021, 6:27pm UTC](https://discuss.dgraph.io/t/golang-dgraph-client-connection-error/14646 "2021-06-19T18:27:07Z")

</div>

Report a Dgraph Client Bug What Dgraph client (and version) are you using? (put “x” in the box to select) Dgo PyDgraph Dgraph4J Dgraph-js Dgraph-js-http Dgraph.NET Version: github.com/dgraph-io/dgo/v210 What …

---

## [Get request returns unexpected/difficult to understand result](https://discuss.dgraph.io/t/get-request-returns-unexpected-difficult-to-understand-result/14480)

<div class="topic-metadata">

**Author:** [@marcopza](https://discuss.dgraph.io/u/marcopza)\
**Replies:** 2\
**Last updated:** [June 8, 2021, 11:33pm UTC](https://discuss.dgraph.io/t/get-request-returns-unexpected-difficult-to-understand-result/14480 "2021-06-08T23:33:35Z")

</div>

Hi, I’ve been playing around with Dgraph, and Go. I’ve got the following schema: age: int . name: string @index(exact) . price: int . buyerID: uid . device: string . id: string @index(exact, term) . pid: string @index(…

---

## [Issue with Dgo](https://discuss.dgraph.io/t/issue-with-dgo/14174)

<div class="topic-metadata">

**Author:** [@dharmjit](https://discuss.dgraph.io/u/dharmjit)\
**Replies:** 2\
**Last updated:** [May 16, 2021, 8:31am UTC](https://discuss.dgraph.io/t/issue-with-dgo/14174 "2021-05-16T08:31:51Z")

</div>

Hello Team, We are also facing Transaction Aborted in Dgo Upserts. I guess retrying is the only solution as of now. Is there a way to do this at the client level?

---

## [Dgo DeleteJson Mutation removes the dgraph.type but not the other fields](https://discuss.dgraph.io/t/dgo-deletejson-mutation-removes-the-dgraph-type-but-not-the-other-fields/14149)

<div class="topic-metadata">

**Author:** [@Baggerone](https://discuss.dgraph.io/u/Baggerone)\
**Replies:** 4\
**Last updated:** [May 14, 2021, 12:29pm UTC](https://discuss.dgraph.io/t/dgo-deletejson-mutation-removes-the-dgraph-type-but-not-the-other-fields/14149 "2021-05-14T12:29:35Z")

</div>

I’ve copied and tweaked the portion of the dgo examples\_test.go file that relates to using a DeleteJson mutation. It seems to only delete the dgraph.type of the deleted instance and not the other fields (e.g. uid, name,…

---

## [@id and @hasinverse on specific type](https://discuss.dgraph.io/t/id-and-hasinverse-on-specific-type/13530)

<div class="topic-metadata">

**Author:** [@lzr](https://discuss.dgraph.io/u/lzr)\
**Replies:** 2\
**Last updated:** [April 12, 2021, 3:08pm UTC](https://discuss.dgraph.io/t/id-and-hasinverse-on-specific-type/13530 "2021-04-12T15:08:49Z")

</div>

Hello, I’m trying to build an app with golang and dgraph, and I’m unable to make a @id working with @hasInverse I’m using the following Schema : type Account { email: String! @id @search(by: \[hash, regexp\]) ses…

---

## [DGO schema](https://discuss.dgraph.io/t/dgo-schema/13463)

<div class="topic-metadata">

**Author:** [@Aledoo](https://discuss.dgraph.io/u/Aledoo)\
**Replies:** 2\
**Last updated:** [March 31, 2021, 1:10pm UTC](https://discuss.dgraph.io/t/dgo-schema/13463 "2021-03-31T13:10:49Z")

</div>

Hi Dgraph community! How do I mutate my Person in dgo, with non-scalar predicate ? The below code works without any effect. operation := &api.Operation{ Schema: \` type Person { name age knows …

---

## [How best to specify ownership of a node](https://discuss.dgraph.io/t/how-best-to-specify-ownership-of-a-node/13257)

<div class="topic-metadata">

**Author:** [@SunSparc](https://discuss.dgraph.io/u/SunSparc)\
**Replies:** 3\
**Last updated:** [March 18, 2021, 12:41pm UTC](https://discuss.dgraph.io/t/how-best-to-specify-ownership-of-a-node/13257 "2021-03-18T12:41:56Z")

</div>

I am coming from a background in MySQL database design. Trying to wrap my brain around these new graphing database concepts and trying to unlearn some of the things that RDBMSs have taught me over the years. I am still l…

---

## [Batch upserts in dgo](https://discuss.dgraph.io/t/batch-upserts-in-dgo/13140)

<div class="topic-metadata">

**Author:** [@milosgajdos](https://discuss.dgraph.io/u/milosgajdos)\
**Replies:** 3\
**Last updated:** [March 15, 2021, 3:43pm UTC](https://discuss.dgraph.io/t/batch-upserts-in-dgo/13140 "2021-03-15T15:43:07Z")

</div>

What I want to do I’m wondering if there is any way I can do batch upserts into dgraph. I understand dgraph live loader has that functionality and I feel like it would be super handy in dgo, too. I’m basically trying t…

---

## [Mutation Upsert Cond does not seem to work with type checks](https://discuss.dgraph.io/t/mutation-upsert-cond-does-not-seem-to-work-with-type-checks/12857)

<div class="topic-metadata">

**Author:** [@milosgajdos](https://discuss.dgraph.io/u/milosgajdos)\
**Replies:** 4\
**Last updated:** [February 20, 2021, 8:50pm UTC](https://discuss.dgraph.io/t/mutation-upsert-cond-does-not-seem-to-work-with-type-checks/12857 "2021-02-20T20:50:44Z")

</div>

I Want to Do I’d like to link two entities only if they have the same type. This is a follow-up issue related to my experiments described here What I Did Assuming I only want to link entities of type Entity as long as t…

---

## [Edge not created between two nodes](https://discuss.dgraph.io/t/edge-not-created-between-two-nodes/12772)

<div class="topic-metadata">

**Author:** [@milosgajdos](https://discuss.dgraph.io/u/milosgajdos)\
**Replies:** 2\
**Last updated:** [February 15, 2021, 8:20am UTC](https://discuss.dgraph.io/t/edge-not-created-between-two-nodes/12772 "2021-02-15T08:20:40Z")

</div>

I’m trying to create an edge between two nodes that should have two facets set on it using dgo client, however, I’m failing miserably. The code I’m trying to put together is seemingly rather simple and I’ve run out of i…

---

## [DQL - Validating untrusted uids?](https://discuss.dgraph.io/t/dql-validating-untrusted-uids/12734)

<div class="topic-metadata">

**Author:** [@paulu](https://discuss.dgraph.io/u/paulu)\
**Replies:** 3\
**Last updated:** [February 11, 2021, 7:51pm UTC](https://discuss.dgraph.io/t/dql-validating-untrusted-uids/12734 "2021-02-11T19:51:59Z")

</div>

Hello, In DQL, is there a canonical way to reference an untrusted object id where the transaction fails if the uid doesn’t exist or a query for the uid is empty? I have dgraph running behind an authenticated API. As pa…

---

## [DGO how do you add an Authorization token to dgraph queries](https://discuss.dgraph.io/t/dgo-how-do-you-add-an-authorization-token-to-dgraph-queries/12561)

<div class="topic-metadata">

**Author:** [@ToneDef00](https://discuss.dgraph.io/u/ToneDef00)\
**Replies:** 0\
**Last updated:** [January 31, 2021, 2:39am UTC](https://discuss.dgraph.io/t/dgo-how-do-you-add-an-authorization-token-to-dgraph-queries/12561 "2021-01-31T02:39:36Z")

</div>

Hello, I have been trying to follow along with the authorization tutorial. I have finally made it so I can query using Dgo however I am getting no query results because I’m missing the JWT authorization header. When I …

---

## [DGO - how to find out the outcome of a conditional upsert](https://discuss.dgraph.io/t/dgo-how-to-find-out-the-outcome-of-a-conditional-upsert/11858)

<div class="topic-metadata">

**Author:** [@mbn18](https://discuss.dgraph.io/u/mbn18)\
**Replies:** 16\
**Last updated:** [December 16, 2020, 4:17pm UTC](https://discuss.dgraph.io/t/dgo-how-to-find-out-the-outcome-of-a-conditional-upsert/11858 "2020-12-16T16:17:57Z")

</div>

I have an conditional upsert query that check if a node exist: condition 1 - if not exist: Add node and link it to another condition 2 - if exist: just link it I know the outcome of condition 1 by using response.GetUi…

---

## [Expose Check Version client call](https://discuss.dgraph.io/t/expose-check-version-client-call/11819)

<div class="topic-metadata">

**Author:** [@WoaDmulL](https://discuss.dgraph.io/u/WoaDmulL)\
**Replies:** 0\
**Last updated:** [December 7, 2020, 5:37pm UTC](https://discuss.dgraph.io/t/expose-check-version-client-call/11819 "2020-12-07T17:37:04Z")

</div>

The CheckVersion api call is not exposed for the client.

---

## [How to get Uids after updating the node?](https://discuss.dgraph.io/t/how-to-get-uids-after-updating-the-node/11307)

<div class="topic-metadata">

**Author:** [@sandeepkangude](https://discuss.dgraph.io/u/sandeepkangude)\
**Replies:** 1\
**Last updated:** [November 5, 2020, 10:16am UTC](https://discuss.dgraph.io/t/how-to-get-uids-after-updating-the-node/11307 "2020-11-05T10:16:45Z")

</div>

I am using the Upsert to Create or Update the node with Go Lang. Here is my code dg, cancel := getDgraphClient() defer cancel() ctx := context.Background() req := &api.Request{CommitNow: true} req.Query = \` { me(f…

---

## [Dgo support for GraphQL queries](https://discuss.dgraph.io/t/dgo-support-for-graphql-queries/8118)

<div class="topic-metadata">

**Author:** [@diggy](https://discuss.dgraph.io/u/diggy)\
**Replies:** 6\
**Last updated:** [October 26, 2020, 8:08pm UTC](https://discuss.dgraph.io/t/dgo-support-for-graphql-queries/8118 "2020-10-26T20:08:39Z")

</div>

Moved from GitHub dgo/126 Posted by vadavallipavan: Dgraph now supports the standard graphQL queries and mutations , can you please advice the roadmap for dgo client to support the same -how can we use the generated qu…

---

## [Using Dgo and Slash GraphQL](https://discuss.dgraph.io/t/using-dgo-and-slash-graphql/10297)

<div class="topic-metadata">

**Author:** [@sbres](https://discuss.dgraph.io/u/sbres)\
**Replies:** 8\
**Last updated:** [September 14, 2020, 5:55pm UTC](https://discuss.dgraph.io/t/using-dgo-and-slash-graphql/10297 "2020-09-14T17:55:31Z")

</div>

Hello I’m starting to use graphql for a side project I have. I’ve been using a local docker container to run my test and after the talk yesterday I decided to test slash graphql. Right now I seem to have hit a roadbloc…

---

## [User not found for id groot](https://discuss.dgraph.io/t/user-not-found-for-id-groot/9952)

<div class="topic-metadata">

**Author:** [@Giovanni2414](https://discuss.dgraph.io/u/Giovanni2414)\
**Replies:** 7\
**Last updated:** [September 2, 2020, 4:05pm UTC](https://discuss.dgraph.io/t/user-not-found-for-id-groot/9952 "2020-09-02T16:05:06Z")

</div>

Hi, i installed the local version for linux following the steps of the duocumentation, but, i have a problem, when i try to connect with Golang, all actions request me a password, but, when i put this, the console say: “…

---

## [Unable to add a element inside an array of string after deleting it once from the array](https://discuss.dgraph.io/t/unable-to-add-a-element-inside-an-array-of-string-after-deleting-it-once-from-the-array/9561)

<div class="topic-metadata">

**Author:** [@Prateek](https://discuss.dgraph.io/u/Prateek)\
**Replies:** 2\
**Last updated:** [August 21, 2020, 6:02pm UTC](https://discuss.dgraph.io/t/unable-to-add-a-element-inside-an-array-of-string-after-deleting-it-once-from-the-array/9561 "2020-08-21T18:02:27Z")

</div>

Hi, I’m new to Dgraph and getting these issues for a couple of days, so I decided to put it here. I have an array of titles: \[string\] that contains a list of titles. I had appended a title title1 inside the titles arra…

---

## [Import dgo/v200 or dgo/v2 package not found](https://discuss.dgraph.io/t/import-dgo-v200-or-dgo-v2-package-not-found/8320)

<div class="topic-metadata">

**Author:** [@onkarbanerjee](https://discuss.dgraph.io/u/onkarbanerjee)\
**Replies:** 8\
**Last updated:** [August 20, 2020, 2:00am UTC](https://discuss.dgraph.io/t/import-dgo-v200-or-dgo-v2-package-not-found/8320 "2020-08-20T02:00:42Z")

</div>

How do we use v200 in import path? since it is not able to find that package at all? And i get an error like this:- Has anyone been able to use v200 of dgo client? Can you provide an example?

---

## [Cannot delete node by json](https://discuss.dgraph.io/t/cannot-delete-node-by-json/8121)

<div class="topic-metadata">

**Author:** [@diggy](https://discuss.dgraph.io/u/diggy)\
**Replies:** 2\
**Last updated:** [July 7, 2020, 12:20pm UTC](https://discuss.dgraph.io/t/cannot-delete-node-by-json/8121 "2020-07-07T12:20:50Z")

</div>

Moved from GitHub dgo/129 Posted by linuxr: Hi, I could not delete node by uid, could someone help me. My code is : type Person struct { Uid string \`json:"uid"\` Name string \`json:"name"\` …

---

## [Updating graph using struct with uid makes edges disappear (dgo)](https://discuss.dgraph.io/t/updating-graph-using-struct-with-uid-makes-edges-disappear-dgo/7583)

<div class="topic-metadata">

**Author:** [@AugustDev](https://discuss.dgraph.io/u/AugustDev)\
**Replies:** 2\
**Last updated:** [July 7, 2020, 11:46am UTC](https://discuss.dgraph.io/t/updating-graph-using-struct-with-uid-makes-edges-disappear-dgo/7583 "2020-07-07T11:46:30Z")

</div>

Hi everyone, I have opened issue to this on dgo github, but I feel it will get more exposure here. The problem: updating a node causes loss of deeper nested edges using dgo. Graph before editing quote { "uid": "0x2a8…

---

## [Updating graph using struct with uid makes edges disappear](https://discuss.dgraph.io/t/updating-graph-using-struct-with-uid-makes-edges-disappear/8122)

<div class="topic-metadata">

**Author:** [@diggy](https://discuss.dgraph.io/u/diggy)\
**Replies:** 1\
**Last updated:** [July 7, 2020, 11:39am UTC](https://discuss.dgraph.io/t/updating-graph-using-struct-with-uid-makes-edges-disappear/8122 "2020-07-07T11:39:27Z")

</div>

Moved from GitHub dgo/130 Posted by AugustDev: I am creating a node by serializing struct and feeding to dgraph. Then I would like to update a value node of the graph by building go struct again and providing it with n…

---

## [Backup option in dgo client](https://discuss.dgraph.io/t/backup-option-in-dgo-client/8116)

<div class="topic-metadata">

**Author:** [@diggy](https://discuss.dgraph.io/u/diggy)\
**Replies:** 4\
**Last updated:** [June 27, 2020, 2:18pm UTC](https://discuss.dgraph.io/t/backup-option-in-dgo-client/8116 "2020-06-27T14:18:06Z")

</div>

Moved from GitHub dgo/124 Posted by praneelrathore: Will there be a backup option available in dgo client in coming releases. This issue https://github.com/dgraph-io/dgraph/issues/4900 was created sometime ago and it h…

---

## [Allow QueryWithVars with a list as argument instead of a map](https://discuss.dgraph.io/t/allow-querywithvars-with-a-list-as-argument-instead-of-a-map/8119)

<div class="topic-metadata">

**Author:** [@diggy](https://discuss.dgraph.io/u/diggy)\
**Replies:** 4\
**Last updated:** [June 17, 2020, 4:18pm UTC](https://discuss.dgraph.io/t/allow-querywithvars-with-a-list-as-argument-instead-of-a-map/8119 "2020-06-17T16:18:07Z")

</div>

Moved from GitHub dgo/127 Posted by blasrodri: QueryWithVars allows adding a map of variables that will be interpolated into the query. But this is not sufficient for functions that are variadic (i.e. uid). Proposal A…

---

## [Is space and multiple line in a query string essential?](https://discuss.dgraph.io/t/is-space-and-multiple-line-in-a-query-string-essential/8120)

<div class="topic-metadata">

**Author:** [@diggy](https://discuss.dgraph.io/u/diggy)\
**Replies:** 1\
**Last updated:** [June 16, 2020, 10:47pm UTC](https://discuss.dgraph.io/t/is-space-and-multiple-line-in-a-query-string-essential/8120 "2020-06-16T22:47:33Z")

</div>

Moved from GitHub dgo/128 Posted by FlyingOnion: If so, what formats or rules should the string obey?

[Next page](https://discuss.dgraph.io/tag/dgo/83.md?match_all_tags=true&page=1&tags%5B%5D=dgo)
