© 2026 Hedgehog Software, LLC
const combinedQuery = gremlin.V(profileId) .project('following', 'follows') .by( __.inE('FOLLOWS').outV().dedup().id().fold() ) .by( __.outE('FOLLOWS').inV().dedup().id().fold() ) const followingResult = await combinedQuery.next(); const followsResult = await combinedQuery.next(); this.logger.debug( `Serving: ${profileId} result: ${JSON.stringify( followingResult )} ` ); 64507 - DEBUG [FetchRelationshipsService] Serving: a28beebb-6724-4012-917f-f7b90730dad3 result: {"value":{},"done":false} '
{ "following": [ "c64a82c1-bae0-4380-a979-fc68d6a3a646", "5f8cf1e3-cb3b-46b9-b2c1-6836ac13b06d" ], "follows": [ "299eaaa9-8d1e-440e-b6d7-f82dd93dc1d9", "5f8cf1e3-cb3b-46b9-b2c1-6836ac13b06d", "c64a82c1-bae0-4380-a979-fc68d6a3a646" ] }
Join the Discord to ask follow-up questions and connect with the community
Apache TinkerPop is an open source graph computing framework and the home of the Gremlin graph query language.
1,383 Members