Helper to create JSON path exists condition Checks if a JSON path exists and returns boolean (PostgreSQL @? operator)
// Check if path existsUser.findAll({ where: jsonPathExists('data', '$.key') })// SQL: WHERE data @? '$.key' Copy
// Check if path existsUser.findAll({ where: jsonPathExists('data', '$.key') })// SQL: WHERE data @? '$.key'
Helper to create JSON path exists condition Checks if a JSON path exists and returns boolean (PostgreSQL @? operator)