I am trying to run a query where I want to ignore entries with a specific email address ...
@foo = Bar.all (: email => 'xxx') <--- Except that I want to deny where this email address exists.
Please let me know how I can do this.
Thank!
or
@foo = Bar.all(:email.ne => 'xxx')
Try:
@foo = Bar.all(:email => {"$ne" => "xxx"})
@foo = Bar.all (: email => {"$ ne" => "xxx"})
Source: https://habr.com/ru/post/1760986/More articles:Grails: Custom Comment Evaluator Using Spring Security Plugin - spring-securityHow to lock a folder on a USB drive? - c #Replace \ r \ n Newlines using XSLT and .NET C # VS 2008 - .netLINQ Group By Problem - vb.netтак много вариантов доступа к данным, что использовать? - c#DataGridView HasErrors? - c #The base class defines many protected methods: is it a good OOP design? - protectedSometimes online application data synchronization - html5A simple algorithm for optimizing particle pianos in 1-dimensional mode for a noisy environment - optimizationSaving AsyncTask in low memory conditions? - androidAll Articles