-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
<!---
Questions: If you have questions about HOW TO use Realm, please ask on
StackOverflow: http://stackoverflow.com/questions/ask?tags=realm
We monitor the realm tag.
Feature Request: Just fill in the first two sections below.
Bugs: To help you as fast as possible with an issue please describe your issue
and the steps you have taken to reproduce it in as much detail as possible.
-->
Goals
I'm trying to use the new functions that were added in the latest update.
Expected Results
<!--- What did you expect to happen? -->
The result to be turned to a stable json.
Actual Results
LOG [TypeError: realm.objects('Bookings').toJSON is not a function. (In 'realm.objects('Bookings').toJSON()', 'realm.objects('Bookings').toJSON' is undefined)]
Also the other function JsonSerializationReplacer is undefined too. Realm.JsonSerializationReplacer
<!--- What happened instead? -->
<!--- e.g. the stack trace of a crash -->
Code Sample
``` const items = realm.objects('Bookings').toJSON();
console.log('items', items)```
Version of Realm and Tooling
- Realm JS SDK Version: 6.1.0
- Node or React Native: Latest one
- Client OS & Version: Latest one
- Which debugger for React Native: None
I also did a pod install right after the npm upgrade, but without success.
Installing RealmJS 6.1.0 (was 6.0.3)
^ This worked. But I still can't use the functions.