Internal class. A builder for composing queries using the fql tagged template function

Type Parameters

  • T extends QueryValue = any

    The expected type of the response from Fauna when evaluated. T can be used to infer the type of the response type from Client methods.

Constructors

Methods

Constructors

Methods

  • Converts this Query to an FQLFragment you can send to Fauna.

    Returns FQLFragment

    a FQLFragment.

     const num = 8;
    const queryBuilder = fql`'foo'.length == ${num}`;
    const queryRequest = queryBuilder.toQuery();
    // produces:
    { fql: ["'foo'.length == ", { value: { "@int": "8" } }, ""] }