fauna / faunadb-python

Python driver for Fauna v4 (deprecated)
https://docs.fauna.com/fauna/v4/
Other
124 stars 25 forks source link

query() needs to support an arbitrary number of terms #38

Closed eaceaser closed 8 years ago

eaceaser commented 8 years ago

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.

eaceaser commented 8 years ago

nvm you can just pass an array in

ashfire908 commented 8 years ago

We could still update it to take either a list or *args.

evan commented 8 years ago

If the service doesn't take varargs I don't think the client needs to.

ashfire908 commented 8 years ago

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.

evan commented 8 years ago

It matches the response format as well. Generally speaking the more that clients diverge from core fauna, the more maintenance they will require.