Type Alias QuerySuccess<T>

QuerySuccess<T>: QueryInfo & {
    data: T;
    static_type?: string;
}

A decoded response from a successful query to Fauna

Type Parameters

Type declaration

  • data: T

    The result of the query. The data is any valid JSON value.

    data is type parameterized so that you can treat it as a certain type if you are using typescript.

  • Optionalstatic_type?: string

    The query's inferred static result type.