Skip to content

Query for total number of nodes #1619

@peterstace

Description

@peterstace

Lots of users have asked for this feature (or some variant of it). New users may get a bad impression of Dgraph since it cannot currently support 'basic' operations that other graph databases have. The answer that a 'count all nodes' function doesn't scale well may not be satisfactory for people who don't understand the technical details as to why this is the case.

One solution that @pawanrawal and I discussed:

  • Use the _predicate_ predicate to find all nodes. Then we can just return the count of those nodes.

Metadata

Metadata

Assignees

Labels

kind/featureSomething completely new we should consider.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions