Type alias UnstableGetResult<Schema, Row, RelationName, Relationships, Query, ClientOptions>

UnstableGetResult<Schema, Row, RelationName, Relationships, Query, ClientOptions>: IsAny<Schema> extends true ? ParseQuery<Query> extends infer ParsedQuery ? ParsedQuery extends Ast.Node[] ? RelationName extends string ? ProcessNodesWithoutSchema<ParsedQuery> : any : ParsedQuery : any : Relationships extends null ? ParseQuery<Query> extends infer ParsedQuery ? ParsedQuery extends Ast.Node[] ? RPCCallNodes<ParsedQuery, RelationName extends string ? RelationName : "rpc_call", Row> : ParsedQuery : Row : ParseQuery<Query> extends infer ParsedQuery ? ParsedQuery extends Ast.Node[] ? RelationName extends string ? Relationships extends GenericRelationship[] ? ProcessNodes<ClientOptions, Schema, Row, RelationName, Relationships, ParsedQuery> : SelectQueryError<"Invalid Relationships cannot infer result type"> : SelectQueryError<"Invalid RelationName cannot infer result type"> : ParsedQuery : never

Main entry point for constructing the result type of a PostgREST query.

Type Parameters

  • Schema extends GenericSchema

    Database schema.

  • Row extends Record<string, unknown>

    The type of a row in the current table.

  • RelationName

    The name of the current table or view.

  • Relationships

    Relationships of the current table.

  • Query extends string

    The select query string literal to parse.

  • ClientOptions extends PostgrestClientOptions

Generated using TypeDoc