v0.4.9
jsonbConditionUnwrap helper
Added jsonbConditionUnwrap() to convert values to strings for JSONB text comparisons. The PostgreSQL ->> operator always returns text, so non-string values (e.g. numeric enums) must be stringified before comparison.
jsonbArraySome<IntegrationConfig>(p.integrationConfig, c =>
eq(c.type, jsonbConditionUnwrap(IntegrationType.VILLAPRO))
)Files Changed
src/query/conditions.ts— newjsonbConditionUnwrap()functionsrc/index.ts— exportsjsonbConditionUnwrap