I think you already checked our documentation?
Yes I’ve already done that. It doesn’t seem to work the way I expect to be probably because it’s not a direct referencing.
Could you share your model files for groups and the one using them?
The model file for “groups”:
Embedded documents with references in mongo is not currently supported by Forest Admin. It will be addressed to our product team. Classic HasMany (array of Object Id) relationships are supported.
For dealing with relationships, you will need to modify your schema for adding a related table dedicated to a subscribed_group model by user with its pastSessionCount and attendedSessionCount fields.
Hi, when I tried with smart relationships, the links to the referenced “group” were shown but pastSessionsCount and attendedSessionsCount disappeared. Do you have any suggestions to overcome this? I tried modifying the local models of a “group” to include those fields but it didn’t work since those fields do not exist in the actual “group” document in the database.