Пример #1
0
 public static async Task<List<GraphNode>> Project(string query, IEnumerable<string> ids, IDictionary<string, string> args = null)
 {
     var request = new GraphProjectRequest
     {
         Query = query, 
         Ids = ids.ToList(),
         Placeholders = args
     };
     var response = await request.ExecuteAsync();
     if (response.Status.IsSuccessful == false)
         throw response.Status.ToFault();
     return response.Nodes;
 }
Пример #2
0
        public static async Task <List <GraphNode> > Project(string query, IEnumerable <string> ids, IDictionary <string, string> args = null)
        {
            var request = new GraphProjectRequest
            {
                Query        = query,
                Ids          = ids.ToList(),
                Placeholders = args
            };
            var response = await request.ExecuteAsync();

            if (response.Status.IsSuccessful == false)
            {
                throw response.Status.ToFault();
            }
            return(response.Nodes);
        }