nezuo / lapis

A DataStore abstraction library for Roblox
https://nezuo.github.io/lapis/
MIT License
55 stars 10 forks source link

Add option to disable immutability #39

Closed nezuo closed 2 months ago

nezuo commented 6 months ago

At the moment, Lapis automatically deep freezes your document's data. This makes it impossible to work with mutable data. There are two options here:

  1. Mutable by default
  2. Immutable by default

As of right now, I think we should go with the second as it's what current users of Lapis expect to happen.

Having an option to disable immutability can also be useful for users who are already deep freezing their documents.

Should this option be global or per collection?