-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add flat
argument to QueryBuilder.iterall()
#5982
Comments
I think I looked into doing this when implementing |
Righto! Fair point. 😅 I think I also noticed a nasty bug in |
Side note: intuitively I would expect |
Fully agree, but didn't do this because it would break backwards compatibility. Also didn't see a way for a deprecation pathway other than just warning if |
Is your feature request related to a problem? Please describe
Typical ways to obtain the results from a query are
all()
,first()
(for testing), anditerall()
. For larger queries, the latter is usually preferable since it doesn't first put all the nodes in a list like all (I believe).all()
andfirst()
both have the input argumentflat
, which flattens the list and useful to e.g. loop over a query that only has one projection per result. However, it seemsiterall()
doesn't have this.Describe the solution you'd like
Let's add a
flat
input argument toiterall()
as well, it's more consistent and useful.The text was updated successfully, but these errors were encountered: