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; }
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); }