Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(GRAPHQL): fix query rewriting for multiple order on nested field. (…
…#7523) We were not adding the , in-between multiple orders in query rewriting for the nested field. For example the order given in this filter posts(filter: { title: { anyofterms: "GraphQL" } }, order: { asc: numLikes, then: { desc: title } }, first: 10, offset: 10) got written to below dgraph statement Author.posts : Author.posts @filter(anyofterms(Post.title, "GraphQL")) (orderasc: Post.numLikesorderdesc: Post.title, first: 10, offset: 10) where there is no comma between two orders. We have fixed it in this PR.
- Loading branch information