Relationship between two users : scope


Error: query.where(…).orWhere is not a function


Works fine for me. Can you share the complete error stack? Also it will be nice if you can share a repo to reproduce the issue


the error occurs because I’m using mongodb, thanks Virk… now it works :blush: