Is the Datastore Query object supposed to be immutable? #731
Labels
api: datastore
Issues related to the Datastore API.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
At first glance I assumed that the
Query
class was supposed to be immutable -- each method creates a new query instance, copies all of the properties from the previous instance and then returns it.However, I noticed that for methods that can be called multiple times (
filter()
andorder()
) it holds a reference to the previous instance.e.g.
Is this the desired functionality?
The text was updated successfully, but these errors were encountered: