private bool RelationshipExists(IAttachedReference sourceNodeReference, IAttachedReference targetNodeReference)
        {
            var query = _graphClient.Cypher
                        .Start(new { source = sourceNodeReference, target = targetNodeReference })
                        .Where("source-->target")
                        .Return <object>("target");

            return(query.Results.Any());
        }
        private List <NodeModel> GetReferences(IAttachedReference sourceReference)
        {
            var query = _graphClient.Cypher
                        .Start(new { source = sourceReference })
                        .Match("source-[relationship]->target")
                        .Where("relationship.RelationshipType='REFERENCES'")
                        .Return <Node <string> >("target");

            var results = query.Results.Select(x => GetNode(x.Reference.Id).Item2).OrderBy(x => x.Type + ":" + x.Name).ToList();

            return(results);
        }