Skip to content
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

All() does not return all results #770

Closed
maaahooo opened this issue Feb 19, 2019 · 2 comments
Closed

All() does not return all results #770

maaahooo opened this issue Feb 19, 2019 · 2 comments

Comments

@maaahooo
Copy link

maaahooo commented Feb 19, 2019

Description

Hi,

i have a question concerning returning all nodes. In my DB,

g.V('node-2323').Out().Out().Out().All() returns 100 nodes, but
g.V('node-2323').Out().Out().Out().GetLimit(2000) returns the actual number of 1287 nodes.

Why is the output of All() limited to 100?

I tried it in repl and through the HTTP API.

My storage backend is leveldb.

Thanks!

@numrut
Copy link

numrut commented Feb 21, 2019

This is the expected behavior. See #718 (comment)

Use ?limit=-1 or .GetLimit(-1) to disable the limit.

@dennwc
Copy link
Member

dennwc commented Apr 1, 2019

Indeed, we limit the number of results returned by HTTP APIs so people don't end up listing the whole graph by accident. Setting the limit to -1 will solve your issue.

@dennwc dennwc closed this as completed Apr 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants