title: NOOP where in JOOQ
body: <p>I'm providing a method that allow multiple filtering options when querying against the <code>books</code> table. The first portion of the query either searches over all books, or only those owned by the current user.</p>
  
  <pre><code> val allBookQuery = if(searchParameters.isOnShelf == true) {
      val context = environment.getContext&lt;AuthorizedContext&gt;()
      context?.currentUser ?: throw GraphQLException("No Current User Authenticated")
      val userUUID = UUID.fromString(context.currentUser.uuid)
  
      select.from(BOOKS, USER_BOOKS, USERS)
      .where(USERS.UUID.eq(userUUID))
      .and(USERS.ID.eq(USER_BOOKS.USER_ID))
      .and(USER_BOOKS.BOOK_ID.eq(BOOKS.ID))
      .and(BOOKS.IS_ARCHIVED.eq(false))
  } else {
      select.from(BOOKS).where(true)
  }
  </code></pre>
  
  <p>The <code>.where(true)</code> expression is used to keep the type of <code>allBookQuery</code> consistent, so that later I can append other conditions without checking for types.</p>
  
  <pre><code>val filteredBooksQuery = if (searchParameters.bookIds != null) {
      allBookQuery.and(BOOKS.ID.`in`(searchParameters.bookIds))
  } else {
      allBookQuery
  }
  
  val finalQuery = if (searchParameters.isAcademic == true) {
      filteredBooksQuery.and(BOOKS.IS_ACADEMIC.eq((true)))
  } else {
      filteredBooksQuery
  }
  </code></pre>
  
  <p>Unfortunately the <code>where(Boolean)</code> method has been deprecated. So while this works for now, I'd like to replace this with a NOOP operation that isn't deprecated.</p>