We’re overhauling Dgraph’s docs to make them clearer and more approachable. If
you notice any issues during this transition or have suggestions, please
let us know.
dgraph increment
tool increments a counter value via transactions. The
increment tool can be used as a health check that an Alpha is able to service
transactions for both queries and mutations.
Example
Increment the default predicate (counter.val
) once. If the predicate doesn’t
yet exist, then it is created starting at counter 0.
--alpha
(default: localhost:9080
):
--pred
(default: counter.val
):