Closed toebes closed 4 years ago
I believe there there are two issues here:
1) The documentation is definitely incorrect. We need to update that. 2) The ModelPermissions class has a constructor, but for some reason it is hidden.
The constructor does not need to be hidden. I believe we should make it public.
For the moment, I think you can use the ModelPermission.fromJSON()
method:
https://docs.convergence.io/js-api/classes/real_time_data.modelpermissions.html#fromjson
I think we should do two things:
Versions
Describe the Bug Starting with example on https://docs.convergence.io/guide/models/model-service.html#opening-model-with-auto-create you encounter a couple of problems
overrideWorld
doesn't exist (it should beoverrideCollectionWorldPermissions
).worldPermissions
and"ted"
complain about a missingtoJSON()
Step To Reproduce Create a typescript file and include the example verbatim.
Expected Behavior Code should compile cleanly...