Cannot update has many embeded object

Hi, I got this error when trying to update a simple array in nested sub documents.

I investigated the error log and inspect the data, seems likeFA is trying to stringify a complex object here

Feature(s) impacted


Observed behavior

Error in console prevents save action:
Uncaught (in promise) TypeError: Converting circular structure to JSON
→ starting at object with constructor ‘e’

Expected behavior

The update succeeds

Failure Logs


I have an Event model defined in mongoose like this
class Event {
@prop({ _id: true, type: BroadcastRoom })
broadcast_rooms?: BroadcastRoom;

and BroadcastRoom is defined like this
class BroadcastRoom {
@prop({type: String})
tags?: Types.Array

This is what I have in .forestadmin-schema.json

....other fields of Event
}, {
  "field": "broadcast_rooms",
  "type": [{
    "fields": [
      ...other fields of BroadcastRoom,
      "field": "tags",
      "type": ["String"]
    }, {

FA console url:

  • Agent (forest package) name & version: “forest-express-mongoose”: “^9.3.2”,
  • Database type: “mongodb”: “^5.7.0”, “mongoose”: “^7.4.1”,
  • Project: lemonade-local
  • Environment: Development

Hey @Thong_Dang,

Thanks for reaching out, and thanks for all the details :raised_hands:

I’m going to try to reproduce right away and I’ll get back to you.


1 Like


I do reproduce!
I’ll filling a bug report at the moment.
We’ll get back to you as soon as it’s fixed (hopefully soon!).

Thanks again for bringing that up.

Thanks! I’m looking forward to hearing from you guys.

1 Like

Hello @Thong_Dang

The fix has been released, you should now be able to edit your datas now

1 Like

Hi, thank you guys, confirmed that this is fix! :blush:

1 Like