HasMany don't display anything

This is a template you can use to report issues. You can also drag images, videos and include Preformatted text

Expected behavior

Clicking on “Artist social medias” in the related data of the artist displays all the ArtistSocialMedias objects.

Actual behavior

I have data in ArtistSocialMedias, linked to an artist.

As shown in the previous picture, when I click on “Artist social medias” in the related data, I don’t see anything.

This is my config in the Artist model :

    Artists.hasMany(models.artistSocialMedias, {
      foreignKey: {
        name: 'artistTalentIdKey',
        field: 'artistTalentId',
      target: {
        name: 'talentId',
      as: 'artistSocialMedias',

It works for all my other relations

Failure Logs

I don’t have server logs but I have this message in my console :

Capture du 2020-05-18 17-27-11

I looked in the code, I don’t find “forest-artist-social-medium”


Please provide any relevant information about your setup.

  • Package Version:
  • Express Version:
  • Sequelize Version:
  • Database Dialect:
  • Database Version:
  • Project Name:

This is that I get when I click on artist social medias in related data :

Hello @Cyrielle_Willerval :wave:

As you stated, it looks like the Forest UI is looking for forest-artist-social-medium instead of forest-artist-social-medias.

Can you please confirm that you can’t find any medium word in your .forestadmin-schema.json file please?

Thanks in advance.


I looked, I don’t have “medium” in my .forestadmin-schema.json

In my ArtistSocialMedias model, I replaced : sequelize.define('artistSocialMedias', ...) by sequelize.define('artistSocials', ...)

In the Artist model, I replaced Artists.hasMany(models.artistSocialMedias, ... by Artists.hasMany(models.artistSocials, ...)

And it works :tipping_hand_woman: