Closed eaceaser closed 8 years ago
nvm you can just pass an array in
We could still update it to take either a list or *args
.
If the service doesn't take varargs I don't think the client needs to.
varargs is just a list at the end of the day, but I think the explicit need to put the queries into a list is better so you are aware of what you are doing.
It matches the response format as well. Generally speaking the more that clients diverge from core fauna, the more maintenance they will require.
You can put an array of queries into a query. Its not really well documented ATM (which should probably be a separate issue) but see
https://faunadb.com/documentation/queries#read_functions
under Get, there is a section for multi-gets that shows the syntax.