New Issue Checklist
Issue Description
When saving a user from the SDK, if an attribute points back to the user, stringify will fail with a RangeError: Invalid string length
Steps to reproduce
- Register a subclass on
Parse.Object called Store with a field that points to the User class e.g. manager
- Extend the
User class to have a store field that points to Store
- Create some users
- Create a
Store with its manager field pointing to a User
- Attempt to save a
User with its store field pointing to that store
- Observe the error
Actual Outcome
Uncaught exception thrown trying to save user
Expected Outcome
Circular pointer serializes automatically
Environment
Server
- Parse Server version:
8.2.0
- Operating system: alpine linux in docker (
node:18-alpine3.21)
- Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc):
Google Cloud
Database
- System (MongoDB or Postgres):
MongoDB
- Database version:
7.0.22
- Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc):
MongoDB Atlas
Client
- Parse JS SDK version:
6.1.1
Logs