Not getting result in hasId() but id().is() works - Apache TinkerPop