prorm API Reference
    Preparing search index...

    Function jsonDeletePath

    • Helper to create JSONB delete by path condition Deletes a key from JSONB by path (PostgreSQL #- operator)

      Parameters

      • column: string
      • path: string | string[]

      Returns Record<string, any>

      // Delete by path
      User.findAll({ where: jsonDeletePath('data', ['a', 'b']) })
      // SQL: WHERE data #- '{a, b}'