# \#graphql

**URL:** https://discuss.dgraph.io/tag/graphql/10.md

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

---

## [GraphQL MCP Bridge](https://discuss.dgraph.io/t/graphql-mcp-bridge/20004)

<div class="topic-metadata">

**Author:** [@pshaddel](https://discuss.dgraph.io/u/pshaddel)\
**Replies:** 0\
**Last updated:** [September 19, 2025, 1:19pm UTC](https://discuss.dgraph.io/t/graphql-mcp-bridge/20004 "2025-09-19T13:19:03Z")

</div>

GraphQL MCP Bridge Hello Everyone! :blush: This might be helpful for ones who are into #MCP and specifically #GraphQL.Last weekend I was trying to convert a GraphQL Schema to a set of queries and mutations and I turned …

---

## [Dgraph query to fetch all possible paths between two node types with depth limit](https://discuss.dgraph.io/t/dgraph-query-to-fetch-all-possible-paths-between-two-node-types-with-depth-limit/19997)

<div class="topic-metadata">

**Author:** [@rg2609](https://discuss.dgraph.io/u/rg2609)\
**Replies:** 3\
**Last updated:** [September 15, 2025, 7:48pm UTC](https://discuss.dgraph.io/t/dgraph-query-to-fetch-all-possible-paths-between-two-node-types-with-depth-limit/19997 "2025-09-15T19:48:19Z")

</div>

I’m working with a Dgraph dataset where nodes have different types and are connected by a RELATED\_TO edge with facets. Here’s a simplified version of the dataset: \_:node\_11 \<dgraph.type\> "Node\_Type1" . \_:node\_11 \<name\> …

---

## [Need to pass variable in custom DQL query](https://discuss.dgraph.io/t/need-to-pass-variable-in-custom-dql-query/19672)

<div class="topic-metadata">

**Author:** [@himanshu-msphere](https://discuss.dgraph.io/u/himanshu-msphere)\
**Replies:** 0\
**Last updated:** [December 20, 2024, 6:49am UTC](https://discuss.dgraph.io/t/need-to-pass-variable-in-custom-dql-query/19672 "2024-12-20T06:49:40Z")

</div>

Hello, I use custom DQL query for graphql which schema as below type ReturnData @remote { name: String count: Int } type Attributemap @remote { groupby: \[ReturnData\] @remoteResponse(name: "@groupby") } type Query…

---

## [Union types in GraphQL](https://discuss.dgraph.io/t/union-types-in-graphql/9581)

<div class="topic-metadata">

**Author:** [@abhimanyusinghgaur](https://discuss.dgraph.io/u/abhimanyusinghgaur)\
**Replies:** 12\
**Last updated:** [December 14, 2024, 7:27am UTC](https://discuss.dgraph.io/t/union-types-in-graphql/9581 "2024-12-14T07:27:42Z")

</div>

Motivation Support union types in GraphQL as specified in the GraphQL spec. User Impact Users will now be able to able to use unions with our GraphQL. It will enhance the user experience. Implementation Introducti…

---

## [Graphql query count for get product count](https://discuss.dgraph.io/t/graphql-query-count-for-get-product-count/19654)

<div class="topic-metadata">

**Author:** [@himanshu-msphere](https://discuss.dgraph.io/u/himanshu-msphere)\
**Replies:** 2\
**Last updated:** [December 12, 2024, 5:22am UTC](https://discuss.dgraph.io/t/graphql-query-count-for-get-product-count/19654 "2024-12-12T05:22:30Z")

</div>

Hello, I am facing an issue while querying my product data using GraphQL in relation to filtered aggregation counts. interface product { id: ID! name: String! @id @search(by: \[regexp\]) sku: String @search(by: \[re…

---

## [Can interfaces implement other interfaces in GraphQL?](https://discuss.dgraph.io/t/can-interfaces-implement-other-interfaces-in-graphql/10013)

<div class="topic-metadata">

**Author:** [@gorillastanley](https://discuss.dgraph.io/u/gorillastanley)\
**Replies:** 7\
**Last updated:** [December 5, 2024, 10:45pm UTC](https://discuss.dgraph.io/t/can-interfaces-implement-other-interfaces-in-graphql/10013 "2024-12-05T22:45:16Z")

</div>

Eg interface A { name: String } interface B implements A { id: String! @id }

---

## [Next-Auth Dgraph DQL/GraphQL Database Adapter](https://discuss.dgraph.io/t/next-auth-dgraph-dql-graphql-database-adapter/14760)

<div class="topic-metadata">

**Author:** [@amaster507](https://discuss.dgraph.io/u/amaster507)\
**Replies:** 5\
**Last updated:** [June 26, 2024, 8:09am UTC](https://discuss.dgraph.io/t/next-auth-dgraph-dql-graphql-database-adapter/14760 "2024-06-26T08:09:57Z")

</div>

Has anyone created a Dgraph DQL/GraphQL database adapter for next-auth? Thinking this probably varies as schema is different, just beginning to learn next-auth, so feel free to chime in with any advice in this area.

---

## [RFC: Nested Filters in GraphQL](https://discuss.dgraph.io/t/rfc-nested-filters-in-graphql/13560)

<div class="topic-metadata">

**Author:** [@JatinDevDG](https://discuss.dgraph.io/u/JatinDevDG)\
**Replies:** 39\
**Last updated:** [March 31, 2024, 11:48am UTC](https://discuss.dgraph.io/t/rfc-nested-filters-in-graphql/13560 "2024-03-31T11:48:49Z")

</div>

Motivation There are many requests from the community to add nested filters in GraphQL and it’s also one of the feature which can add more flexibility and value in our GraphQL implementation. Nested Filters like below…

---

## [GraphQL+- -\> Spec Compliant GraphQL](https://discuss.dgraph.io/t/graphql-spec-compliant-graphql/5891)

<div class="topic-metadata">

**Author:** [@michaelcompton](https://discuss.dgraph.io/u/michaelcompton)\
**Replies:** 13\
**Last updated:** [February 13, 2024, 12:49am UTC](https://discuss.dgraph.io/t/graphql-spec-compliant-graphql/5891 "2024-02-13T00:49:28Z")

</div>

What’s missing from Dgraph in the GraphQL API These are things that can be done in ±, but don’t have an equiv in our GraphQL. Order is the order you find them by scrolling through the docs. I’ve annotated with e : easy…

---

## [How to work with Nested Lambda in Dgraph?](https://discuss.dgraph.io/t/how-to-work-with-nested-lambda-in-dgraph/19136)

<div class="topic-metadata">

**Author:** [@Dywane\_Saludar](https://discuss.dgraph.io/u/Dywane_Saludar)\
**Replies:** 0\
**Last updated:** [December 21, 2023, 1:46am UTC](https://discuss.dgraph.io/t/how-to-work-with-nested-lambda-in-dgraph/19136 "2023-12-21T01:46:02Z")

</div>

I’m having a problem of using the resolver for nested Lambda in Dgraph. The implementation is working with the Apollo but for some reason when I tried it with Dgraph it doesn’t work. The context is, I have to create cust…

---

## [Major Refactoring of Weasel: Transitioning from a Library to a Standalone Program](https://discuss.dgraph.io/t/major-refactoring-of-weasel-transitioning-from-a-library-to-a-standalone-program/18971)

<div class="topic-metadata">

**Author:** [@MichelDiz](https://discuss.dgraph.io/u/MichelDiz)\
**Replies:** 1\
**Last updated:** [October 10, 2023, 7:05pm UTC](https://discuss.dgraph.io/t/major-refactoring-of-weasel-transitioning-from-a-library-to-a-standalone-program/18971 "2023-10-10T19:05:39Z")

</div>

Hello everyone, I am excited to announce that Weasel is undergoing a significant transformation. What began as a library designed for embedded work will now stand as an independent program. My key objectives for this re…

---

## [How to remove Link in a Many-to-Many Relationship](https://discuss.dgraph.io/t/how-to-remove-link-in-a-many-to-many-relationship/18883)

<div class="topic-metadata">

**Author:** [@Gagan\_Singh](https://discuss.dgraph.io/u/Gagan_Singh)\
**Replies:** 1\
**Last updated:** [September 7, 2023, 5:50pm UTC](https://discuss.dgraph.io/t/how-to-remove-link-in-a-many-to-many-relationship/18883 "2023-09-07T17:50:55Z")

</div>

I have a Many-to-Many Relationship between objects. type Segments{ leads: \[Contact\] @hasInverse(field: segments) } type Contact { segments: \[Segments\] } I want to remove the link between the objects of FilterResult …

---

## [How To Use Nullable @id Fields?](https://discuss.dgraph.io/t/how-to-use-nullable-id-fields/18834)

<div class="topic-metadata">

**Author:** [@zaneaw](https://discuss.dgraph.io/u/zaneaw)\
**Replies:** 2\
**Last updated:** [August 15, 2023, 10:40pm UTC](https://discuss.dgraph.io/t/how-to-use-nullable-id-fields/18834 "2023-08-15T22:40:10Z")

</div>

Report a GraphQL Bug What edition and version of Dgraph are you using? Edition: SlashGraphQL Dgraph (community edition/Dgraph Cloud) If you are using the community edition or enterprise edition of Dgraph, please lis…

---

## [A solution of performing Deep Mutations from inside a frontend application](https://discuss.dgraph.io/t/a-solution-of-performing-deep-mutations-from-inside-a-frontend-application/18734)

<div class="topic-metadata">

**Author:** [@Poolshark](https://discuss.dgraph.io/u/Poolshark)\
**Replies:** 2\
**Last updated:** [June 22, 2023, 4:17pm UTC](https://discuss.dgraph.io/t/a-solution-of-performing-deep-mutations-from-inside-a-frontend-application/18734 "2023-06-22T16:17:26Z")

</div>

Since this seems be a widely requested topic, I decided to share our approach to deal with deep mutations. DISCLAIMER: This is not a perfect solution and certainly comes with some side-effects. However, for us, it cove…

---

## [Lambda/Custom Resolver Filtering allowed or not?](https://discuss.dgraph.io/t/lambda-custom-resolver-filtering-allowed-or-not/13179)

<div class="topic-metadata">

**Author:** [@Florian](https://discuss.dgraph.io/u/Florian)\
**Replies:** 4\
**Last updated:** [May 30, 2023, 11:28am UTC](https://discuss.dgraph.io/t/lambda-custom-resolver-filtering-allowed-or-not/13179 "2023-05-30T11:28:52Z")

</div>

Report a Dgraph Bug What version of Dgraph are you using? Dgraph Version$ dgraph version 20.11.0-rc1-441-gf4c857b8 Have you tried reproducing the issue with the latest release? What is the hardware spec (RAM, OS)? 16…

---

## [Is there a way of assigning a UID to a field with type string OR can I sort the parent node by an edge UID in GraphQL?](https://discuss.dgraph.io/t/is-there-a-way-of-assigning-a-uid-to-a-field-with-type-string-or-can-i-sort-the-parent-node-by-an-edge-uid-in-graphql/18385)

<div class="topic-metadata">

**Author:** [@Poolshark](https://discuss.dgraph.io/u/Poolshark)\
**Replies:** 1\
**Last updated:** [March 17, 2023, 6:07am UTC](https://discuss.dgraph.io/t/is-there-a-way-of-assigning-a-uid-to-a-field-with-type-string-or-can-i-sort-the-parent-node-by-an-edge-uid-in-graphql/18385 "2023-03-17T06:07:57Z")

</div>

Consider the following schema interface Sortable { id: ID! sortings: \[Sorting!\]! } type Sorting { id: ID! sequence: Int! contextRef: String! @search(by: \[exact\]) } type Course { id: ID! title: String! …

---

## [How to handle schema evolution incrementally](https://discuss.dgraph.io/t/how-to-handle-schema-evolution-incrementally/18376)

<div class="topic-metadata">

**Author:** [@rverma-nsl](https://discuss.dgraph.io/u/rverma-nsl)\
**Replies:** 3\
**Last updated:** [March 14, 2023, 2:43pm UTC](https://discuss.dgraph.io/t/how-to-handle-schema-evolution-incrementally/18376 "2023-03-14T14:43:30Z")

</div>

What I want to do Create multiple types to be consumed with graphql. What I did Note: Newbie here Added an schema using the guide here Fetching and Updating Your Schema - Dgraphcloud Used variable { "sch" : "typ…

---

## [Attend hack.summit() for free](https://discuss.dgraph.io/t/attend-hack-summit-for-free/18356)

<div class="topic-metadata">

**Author:** [@akon](https://discuss.dgraph.io/u/akon)\
**Replies:** 0\
**Last updated:** [March 3, 2023, 9:00pm UTC](https://discuss.dgraph.io/t/attend-hack-summit-for-free/18356 "2023-03-03T21:00:13Z")

</div>

Hi DGraph Community, You can attend hack.summit() for free. Come join us at hack.summit() — a virtual conference where you can learn about blockchain concepts. You can attend from anywhere, and the event is happening M…

---

## [Update throughput of dGraph using Python Client](https://discuss.dgraph.io/t/update-throughput-of-dgraph-using-python-client/18342)

<div class="topic-metadata">

**Author:** [@dbazina-dev](https://discuss.dgraph.io/u/dbazina-dev)\
**Replies:** 2\
**Last updated:** [March 3, 2023, 2:52pm UTC](https://discuss.dgraph.io/t/update-throughput-of-dgraph-using-python-client/18342 "2023-03-03T14:52:25Z")

</div>

Hello everyone ! I would like to know what is the best way to achieve the “highest throughput” regarding the update of dGraph nodes using Python. In my current setup I have to update nodes 50-100 times in a second & whe…

---

## [How can I traverse all nodes irrespective of its type and values inside](https://discuss.dgraph.io/t/how-can-i-traverse-all-nodes-irrespective-of-its-type-and-values-inside/18304)

<div class="topic-metadata">

**Author:** [@hbarve1](https://discuss.dgraph.io/u/hbarve1)\
**Replies:** 4\
**Last updated:** [February 21, 2023, 10:57pm UTC](https://discuss.dgraph.io/t/how-can-i-traverse-all-nodes-irrespective-of-its-type-and-values-inside/18304 "2023-02-21T22:57:49Z")

</div>

I have dumped data from large json file, now I want to traverse all the nodes one by one, can anyone help me with the query for it. current queries I found in documentation are restricted to any type or key/entry of it’s…

---

## [Best Practice when developing schemas GraphQL First or DQL First?](https://discuss.dgraph.io/t/best-practice-when-developing-schemas-graphql-first-or-dql-first/18172)

<div class="topic-metadata">

**Author:** [@koderguy](https://discuss.dgraph.io/u/koderguy)\
**Replies:** 4\
**Last updated:** [January 19, 2023, 4:00am UTC](https://discuss.dgraph.io/t/best-practice-when-developing-schemas-graphql-first-or-dql-first/18172 "2023-01-19T04:00:40Z")

</div>

Noobie here. I’d like to know when I’m designing my schema, whether it is better to design against GraphQL first or design it against DQL first then add the GraphQL schema. From the docs and my limited experience it se…

---

## [How versioning GraphQL Schema?](https://discuss.dgraph.io/t/how-versioning-graphql-schema/18187)

<div class="topic-metadata">

**Author:** [@TL2\_SM](https://discuss.dgraph.io/u/TL2_SM)\
**Replies:** 3\
**Last updated:** [January 19, 2023, 12:49am UTC](https://discuss.dgraph.io/t/how-versioning-graphql-schema/18187 "2023-01-19T00:49:36Z")

</div>

Newbie here, I’m using Dgraph Cloud API and want to know if exists any way to design a control-version for the schemas or a new form to perform How we set up version control of our schema on Slash on Dgraph Cloud.

---

## [How to return a DQL query result from a custom lambda resolver](https://discuss.dgraph.io/t/how-to-return-a-dql-query-result-from-a-custom-lambda-resolver/17854)

<div class="topic-metadata">

**Author:** [@Poolshark](https://discuss.dgraph.io/u/Poolshark)\
**Replies:** 1\
**Last updated:** [October 12, 2022, 4:06pm UTC](https://discuss.dgraph.io/t/how-to-return-a-dql-query-result-from-a-custom-lambda-resolver/17854 "2022-10-12T16:06:17Z")

</div>

Assuming running a DQL mutation inside a custom lambda resolver { q(func: uid(0x1)) @recurse(loop: false, depth: 3) { uid dgraph.type expand(\_all\_) } } and the response of which will be { "data": { …

---

## [Thoughts about Using GraphQL Shield in a layer above Dgraph instead of @auth](https://discuss.dgraph.io/t/thoughts-about-using-graphql-shield-in-a-layer-above-dgraph-instead-of-auth/17721)

<div class="topic-metadata">

**Author:** [@amaster507](https://discuss.dgraph.io/u/amaster507)\
**Replies:** 2\
**Last updated:** [September 3, 2022, 3:34am UTC](https://discuss.dgraph.io/t/thoughts-about-using-graphql-shield-in-a-layer-above-dgraph-instead-of-auth/17721 "2022-09-03T03:34:15Z")

</div>

Copying most of this from Discord Conversation with @MichelDiz Has anyone in this community tried to use GraphQL Shield along with Dgraph’s GraphQL? I was interested if anyone used it along with Dgraph’s GraphQL and A…

---

## [Transactions in GraphQL](https://discuss.dgraph.io/t/transactions-in-graphql/6861)

<div class="topic-metadata">

**Author:** [@arijit](https://discuss.dgraph.io/u/arijit)\
**Replies:** 27\
**Last updated:** [September 1, 2022, 10:23am UTC](https://discuss.dgraph.io/t/transactions-in-graphql/6861 "2022-09-01T10:23:21Z")

</div>

Running multiple GraphQL mutations concurrently can cause transaction abort. This post proposes a way to deal with it. Background Every GraphQL mutation starts a new transaction. A mutation is done via an upsert query, …

---

## [Best way to handle Searchable Product Tags](https://discuss.dgraph.io/t/best-way-to-handle-searchable-product-tags/17617)

<div class="topic-metadata">

**Author:** [@thelovesmith](https://discuss.dgraph.io/u/thelovesmith)\
**Replies:** 14\
**Last updated:** [August 15, 2022, 2:44pm UTC](https://discuss.dgraph.io/t/best-way-to-handle-searchable-product-tags/17617 "2022-08-15T14:44:39Z")

</div>

Good afternoon, I have recently started working with DGraph and I am very pleased! I have recently come across an obstacle with building out my Schema. I am working with types that have a: tags: \[Tags!\]! property. I …

---

## [Is it possible to add a field to an interface in an existing graphql schema?](https://discuss.dgraph.io/t/is-it-possible-to-add-a-field-to-an-interface-in-an-existing-graphql-schema/17334)

<div class="topic-metadata">

**Author:** [@sebastianmontero](https://discuss.dgraph.io/u/sebastianmontero)\
**Replies:** 0\
**Last updated:** [May 21, 2022, 2:24pm UTC](https://discuss.dgraph.io/t/is-it-possible-to-add-a-field-to-an-interface-in-an-existing-graphql-schema/17334 "2022-05-21T14:24:16Z")

</div>

Hi, I’ve tried to add a field to an existing interface, all types that implement this interface have the field, the update of the schema is succesful, and I can see the field in the interface and query it, but it return…

---

## [GraphQL Types Definition](https://discuss.dgraph.io/t/graphql-types-definition/17221)

<div class="topic-metadata">

**Author:** [@junghc](https://discuss.dgraph.io/u/junghc)\
**Replies:** 2\
**Last updated:** [April 28, 2022, 2:21am UTC](https://discuss.dgraph.io/t/graphql-types-definition/17221 "2022-04-28T02:21:06Z")

</div>

For example, type is defined as follows: type Task { id: ID! title: String! completed: Boolean! } Request through postman as follows: Now, Task operations can be performed through GraphQL: At this p…

---

## [Dgraph Development Starter](https://discuss.dgraph.io/t/dgraph-development-starter/17047)

<div class="topic-metadata">

**Author:** [@pshaddel](https://discuss.dgraph.io/u/pshaddel)\
**Replies:** 0\
**Last updated:** [March 19, 2022, 6:00pm UTC](https://discuss.dgraph.io/t/dgraph-development-starter/17047 "2022-03-19T18:00:52Z")

</div>

Hey guys, Deploying schema and lambda script was a pain in the neck for me all the time and as a result I implemented a development environment for Dgraph(v21.03). It needs nodejs and docker-compose and you can start d…

---

## [One Way vs. Two Way @hasInverse](https://discuss.dgraph.io/t/one-way-vs-two-way-hasinverse/7255)

<div class="topic-metadata">

**Author:** [@amaster507](https://discuss.dgraph.io/u/amaster507)\
**Replies:** 4\
**Last updated:** [March 16, 2022, 9:16pm UTC](https://discuss.dgraph.io/t/one-way-vs-two-way-hasinverse/7255 "2022-03-16T21:16:55Z")

</div>

Can someone explain if there is any difference in making a one way @hasInverse vs. making a two way @hasInverse? Type Person { id: ID! friends: \[Person\] @hasInverse(field: friends) hasPosts: \[Post\] @hasInverse(fie…

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