Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contains filter on ModelAlias does result in error #770

Open
wibed opened this issue Oct 1, 2023 · 0 comments
Open

contains filter on ModelAlias does result in error #770

wibed opened this issue Oct 1, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@wibed
Copy link

wibed commented Oct 1, 2023

Code

...
final class ModuleAsset: ModelAlias {
  static let name = "moduleasset"
  let model = Asset()
}
...

      .filter(ModuleAsset.self, \.$name != participantmoduleName)
...

Error

Operator function '!~' requires that 'ModuleAsset' conform to 'Model'

summary

expected to filter on a contains filter. contains does not.
i tried:

  • comparison filter (==) works fine
@wibed wibed added the bug Something isn't working label Oct 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant