# Exists

class Exists(val expression: Expression<*>, val path: String, val optional: String?, val jsonType: IColumnType<*>) : Op<Boolean> , ComplexExpression

Represents an SQL operator that checks whether data exists within a JSON expression at the specified path.

## Constructors

Exists
Link copied to clipboard
constructor(expression: Expression<*>, vararg path: String, optional: String?, jsonType: IColumnType<*>)

## Properties

expression
Link copied to clipboard
val expression: Expression<*>

The JSON expression being checked.

jsonType
Link copied to clipboard
val jsonType: IColumnType<*>

The column type of expression to check, if casting to JSONB is required.

optional
Link copied to clipboard
val optional: String?

An optional String representing any vendor-specific clause or argument.

path
Link copied to clipboard
val path: Array<out String>

The array of Strings representing JSON path/keys that match fields to check for existing data.

## Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toQueryBuilder
Link copied to clipboard
open override fun toQueryBuilder(queryBuilder: QueryBuilder)
toString
Link copied to clipboard
open override fun toString(): String