Skip to content

Can't run raw query #19

Closed
Closed
@ezsil

Description

@ezsil

I can't see anyway to run a raw Mongo query using the open database connection. Is this possible? If not, I'd say this is an issue.

Activity

added a commit that references this issue on Aug 15, 2013
b910676
jenssegers

jenssegers commented on Aug 15, 2013

@jenssegers
Contributor

I added support to execute raw expressions like this:

DB::collection('users')->raw(function($collection)
{
    return $collection->find();
});

Or:

DB::collection('users')->raw()->find();
added 2 commits that reference this issue on Sep 2, 2024
6fe9c70
df32364
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @jenssegers@ezsil

        Issue actions

          Can't run raw query · Issue #19 · mongodb/laravel-mongodb