ardoq gremlin training 13

The count-step is used to count components or references in the current selection.

The following query finds the number of components in the organization:

g.V().count()
number of components

The following query finds the number of references in the organization:

g.E().count()
number of references

The following query finds the number of components in a particular workspace (the id of a workspace can be found by looking at the url bar when within the workspace):

g.V().has('rootWorkspace', 'de21bf3cfd8fc78aaa42406e').count()
number of components in workspace

The following query finds the number of applications that Ardoq is integrated with:

g.V().
has('Application', 'name', 'Ardoq').
out('Is Integrated With').
hasLabel('Application').
count()
number of application
Did this answer your question?