# How to batch upsert with the Golang client

**URL:** <https://discuss.dgraph.io/t/how-to-batch-upsert-with-the-golang-client/19377>\
**Category:** Dgraph\
**Tags:** kind:question\
**Created:** [June 26, 2024, 6:41pm UTC](https://discuss.dgraph.io/t/how-to-batch-upsert-with-the-golang-client/19377 "2024-06-26T18:41:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JourneyToSilius](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/journeytosilius/32/11617_2.png) [@JourneyToSilius](https://discuss.dgraph.io/u/JourneyToSilius)\
**Post date:** [June 26, 2024, 6:41pm UTC](https://discuss.dgraph.io/t/how-to-batch-upsert-with-the-golang-client/19377/1 "2024-06-26T18:41:52Z")

</div>

Hi, wanted to know if somebody can point me to some docs on how to make a batch upsert correctly with the Golang client ? Is it implemented via an API or it’s something more manual ? If so, can I get some basic example code on how to do this ?

Thanks

---

<div class="post-metadata">

**Author:** ![vnium](https://avatars.discourse-cdn.com/v4/letter/v/e56c9b/32.png) [@vnium](https://discuss.dgraph.io/u/vnium)\
**Post date:** [June 26, 2024, 7:08pm UTC](https://discuss.dgraph.io/t/how-to-batch-upsert-with-the-golang-client/19377/2 "2024-06-26T19:08:27Z")

</div>

Checkout the examples in the readme of the Golang client: [GitHub - dgraph-io/dgo: Official Dgraph Go client](https://github.com/dgraph-io/dgo)
