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

trololosha4real picture trololosha4real  路  20Comments

adnanfajr picture adnanfajr  路  23Comments

elanvans picture elanvans  路  17Comments

lzao picture lzao  路  29Comments

klferreira picture klferreira  路  35Comments