Skip to content

Export Custom Operators

Pre-release
Pre-release
Compare
Choose a tag to compare
@tanner0101 tanner0101 released this 05 Feb 21:00
74c64be

Provides a workaround for SR-12132 which causes custom operators defined in FluentKit to not be exported correctly (fixes vapor/fluent-kit#144, #656)

Custom operators for String filtering will now be available by importing just Fluent:

  • ~~: Value contains string
  • =~: Value has string prefix
  • ~=: Value has string suffix
  • !~: Value doesn't contain string
  • !=~: Value doesn't have string prefix
  • !~=: Value doesn't have string suffix

As well as operators for Array filtering:

  • ~~: Value in array
  • !~: Value not in array