Hello
Everything is in the title
I saw the explorer feature that I didn’t know, and I wanted to experience it : it’s perfect in development / local, but it says No data in production
I have for example a smart field in /forest/user.js
{
field: 'notifications',
type: ['String'],
reference: 'NotificationsLog._id',
},
then I have in routes/user.js
// get notifications of a User
router.get('/User/:recordId/relationships/notifications', permissionMiddlewareCreator.update(), async (request, response, next) => {
const notifications = await NotificationsLogObject.find({ user: request.params.recordId });
const serializer = new RecordSerializer(NotificationsLogObject);
const serializedNotifications = await serializer.serialize(notifications, { count: notifications.length });
response.send(serializedNotifications);
});
working good in dev, not in production.
Thanks !