You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Protect.js supports nested objects in your schema, allowing you to encrypt **but not search on** nested properties. You can define nested objects up to 3 levels deep.
82
+
This is useful for data stores that have less structured data, like NoSQL databases.
83
+
84
+
You can define nested objects by using the `csValue` function to define a value in a nested object. The value naming convention of the `csValue` function is a dot-separated string of the nested object path, e.g. `profile.name` or `profile.address.street`.
85
+
86
+
> [!NOTE]
87
+
> Using nested objects is not recommended for SQL databases, as it will not be searchable.
88
+
> You should either use a JSON data type and encrypt the entire object, or use a separate column for each nested property.
0 commit comments