Skip to content
Discussion options

You must be logged in to vote

There's an is operator for nil checking. Does this work for you?

Book
  .select { $0.count() }
  .leftJoin(BookAuthor.all) { $0.id.eq($1.bookId) }
  .where { $1.id.is(nil) }

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@stephencelis
Comment options

@carbonsam
Comment options

Answer selected by carbonsam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants