amaster507
(Anthony Master)
May 3, 2021, 10:44pm
2
It is possible with DQL in a single query. It is possible right now in GraphQL with multiple queries, but there is a RFC and work being done towards this:
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 are not supported in GraphQL .
query {
queryAuthor(
filter: { name: { eq: "Alice" }, or: { posts: { postID: ["0x1", "0x2"] } } }
) {
name
posts {
title
}
}
}
Although in DQL this Query is possible using var blocks like below
query {
post1 as var(…