/// <summary> /// Issues multiple queries to FaunaDB. /// <para> /// These queries are sent to FaunaDB in a single request, and are evaluated. The list of response nodes is returned /// in the same order as the issued queries. /// </para> /// <para> /// See <see cref="Query(Expr)"/> for more information on the individual queries. /// </para> /// </summary> /// <param name="expressions">the list of query expressions to be sent to FaunaDB.</param> /// <returns>a <see cref="Task"/> containing an ordered list of root response nodes.</returns> public async Task <Value[]> Query(params Expr[] expressions) { var response = await Query(UnescapedArray.Of(expressions)).ConfigureAwait(false); return(response.Collect(Field.Root).ToArray()); }
/// <summary> /// Issues multiple queries to FaunaDB. /// <para> /// These queries are sent to FaunaDB in a single request, and are evaluated. The list of response nodes is returned /// in the same order as the issued queries. /// </para> /// <para> /// See <see cref="Query(Expr)"/> for more information on the individual queries. /// </para> /// </summary> /// <param name="expressions">the list of query expressions to be sent to FaunaDB.</param> /// <returns>a <see cref="Task"/> containing an ordered list of root response nodes.</returns> public async Task <IEnumerable <Value> > Query(IEnumerable <Expr> expressions) { var response = await Query(UnescapedArray.Of(expressions)).ConfigureAwait(false); return(response.Collect(Field.Root)); }