Send query variable value as an array or enum


I need to be able to filter on an arbitrary number of values for a given predicate (which can be either string type or [string]). However currently, I don’t see an option apart from defining a separate query depending on the number of arguments, which is silly.

I saw a similar request this time last year (query variable value as array), any improvements?

Thanks! :pray:

Did you mean “GraphQL variables”? (which are DQL Variables in fact)
If so, there’s a small update about it

If not, can you be more specific?


I think @ranic was referring to this: Support lists in query variables (Dgraph's GraphQL Variable) · Issue #2726 · dgraph-io/dgraph · GitHub

The request is well captured in this reply.

Keen to know if there’s any improvement in this regard.