Skip to main content
Module

x/kysely_deno_postgres_dialect/mod.ts>kysely.TraversedJSONPathBuilder#$castTo

Kysely dialect for PostgreSQL using the deno-postgres client.
Latest
method kysely.TraversedJSONPathBuilder.prototype.$castTo
import { kysely } from "https://deno.land/x/kysely_deno_postgres_dialect@v0.27.1/mod.ts";
const { TraversedJSONPathBuilder } = kysely;

Change the output type of the json path.

This method call doesn't change the SQL in any way. This methods simply returns a copy of this JSONPathBuilder with a new output type.