Laravel-mongodb: Unrecognized expression '$toString' in Aggregate.php

Created on 7 Feb 2019  路  2Comments  路  Source: jenssegers/laravel-mongodb

I have issue on QA environment.
I am running a project using Docker. Docker configuration are same on all environments.
But the issue is only on QA.

We are trying to convert _id from object to string.

laravel.ERROR: Unrecognized expression '$toString'

question awaiting-author

All 2 comments

tomou no cu

This is about mongo version, in documentation $toString, only in version 4 above. I have the same problem, and I resolved with { $convert: { input: , to: "string" } }.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BlakeGardner picture BlakeGardner  路  3Comments

bastiendonjon picture bastiendonjon  路  3Comments

sebastiaanluca picture sebastiaanluca  路  3Comments

lgt picture lgt  路  3Comments

yupangestu picture yupangestu  路  3Comments