Skip to content

Forces "_id" to be an instance of Mongo's ObjectId #24

Closed
@rms2219

Description

@rms2219

If I wanted to have my document's "_id" be something other than Mongo's ObjectId, the "compileWheres()" function throws a Mongo Exception because it excepts to be able to create a MongoId instance. If Mongo allows anything to be entered into the _id field, shouldn't we be able to do that using the MongoDB Eloquent model?

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

    Issue actions