docs icon indicating copy to clipboard operation
docs copied to clipboard

Custom Operators in Fluent

Open calebkleveter opened this issue 7 years ago • 0 comments

It is fairly common for someone to want to use an operator for the DB that they are using that is not supported by Fluent. In most cases, they end up using a raw query because that is the most obvious way to handle it. However, Fluent actually supports "custom" operators, so you don't have to use a raw query. This should be documented.

Here is the related discussion on Discord:

https://discordapp.com/channels/431917998102675485/519613337638797315/534775507351240704

So, right now, this should work:

User.query(on: conn).filter(\.name, "*~", "pattern")

calebkleveter avatar Jan 15 '19 17:01 calebkleveter