forest-express-mongoose icon indicating copy to clipboard operation
forest-express-mongoose copied to clipboard

Smart Relationships are all empty in 7.8.4 and after

Open AlexAVL opened this issue 4 years ago • 0 comments

Expected behavior

Clicking a smart relationship shows data in the right hand pane.

Actual behavior

Clicking a smart relationship instead shows "No xxx. There are no xxx yet". This happens for all smart relationships.

Failure Logs

n/a

Context

This is a sample with three smart relationships, none of which work in 7.8.4 or after:

const Liana = require('forest-express-mongoose');

Liana.collection('Organisation', {
  fields: [
    {
      field: 'events',
      type: ['String'],
      reference: 'Event.id',
    },
    {
      field: 'locations',
      type: ['String'],
      reference: 'Location.id',
    },
    {
      field: 'servers',
      type: ['String'],
      reference: 'Server.id',
    },
  ],
});

7.8.3 and before works perfectly. No other variables changed.

  • Package Version: 7.8.4
  • Express Version: 4.17.1
  • Mongoose Version: 5.13.7
  • MongoDB Version: 3.6.11

AlexAVL avatar Aug 19 '21 14:08 AlexAVL