Skip to content

Raw queries #56

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

Closed
duffybelfield opened this issue Oct 15, 2013 · 2 comments
Closed

Raw queries #56

duffybelfield opened this issue Oct 15, 2013 · 2 comments

Comments

@duffybelfield
Copy link

How would I convert this into a raw statement:

db.users.find ( { $or: [ { 'skills.Pascal': {$exists: true} }, { 'skills.Accounting': {$exists: true } } ] } )

@jenssegers
Copy link
Contributor

You can use the raw method:

User::raw()->find(...);

https://github.com/jenssegers/Laravel-MongoDB#raw-expressions

@msankar1991
Copy link

Is there any options with pagination option while using the raw() queries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants