I'm using DSE graph. I have a model like this:
AccountGroup "consists of" Account (AccountGroup -> Account). Profile "accesses_to" Account (Profile -> Account).
Now given an account_id, I need to return all the vertices and edges related to that Account.
My gremlin code looks like this:
g.V().has('Account', 'account_id', '123456').in().hasLabel('AccountGroup')
That only returns one AccountGroup for Account. How to write the query for getting all Account, AccountGroup and Profile?