когда я пытаюсь получить свой api через почтальона, у меня возникает эта ошибка
TypeError: Converting circular structure to JSON
--> starting at object with constructor 'NativeTopology'
| property 's' -> object with constructor 'Object'
| property 'sessionPool' -> object with constructor 'ServerSessionPool'
--- property 'topology' closes the circle
я использую mon goose и express
const express = require('express')
const Rent = require('../model/rent')
var stringify = require('json-stringify-safe');
route = express()
route.use(express.json());
route.get('/rent', (req,res) => {
const rents = Rent.find();
res.send(JSON.stringify(rents))
})
module.exports = route
если я удалю JSON .stringify, у меня будет та же проблема. Заранее спасибо