WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey guys! Love your package so much. We were using jenssegers version and just starting migration process. Love new features and updates.
Our front-end uses and expects _id everywhere. Is there any way to force builder not to convert _id to id in results?
I've already did a fork of the your repo and using smth like
if (config('sys.CONVERT_MONGO_ID_RESULT', true)) {
if (array_key_exists('_id', $values) && !array_key_exists('id', $values)) {
$values['id'] = $values['_id'];
unset($values['_id']);
}
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hey guys! Love your package so much. We were using jenssegers version and just starting migration process. Love new features and updates.
Our front-end uses and expects _id everywhere. Is there any way to force builder not to convert _id to id in results?
I've already did a fork of the your repo and using smth like
Beta Was this translation helpful? Give feedback.
All reactions