react native - Can I call a function or variables within a realm query? -


is there way call function or variable within realm query such this? _getdate() function can't seem called within filtered

realm.objects('round').filtered('id !== {_getdate()}') 

can try following code? use string template syntax (backtick instead quote , ${_getdate()}.) also, realm's query syntax not same javascript. doesn't have !== operator. use !=.

realm.objects('round').filtered(`id != ${_getdate()}`)