DQL is meant to be a server side query language while GraphQL is meant to be a client side API (which can also be used server side).
That being said, I highly doubt any such thing as you requested will ever be available.
Workaround: wherever your backend is, put there your custom query.