Skip to content

Smart Relationships are all empty in 7.8.4 and after #659

@AlexAVL

Description

@AlexAVL

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions