Dont store props as null

Hello,

I saw the optimization and found this:

Don’t store properties whose value is null , empty String/Array/Object , or a known default.

In my schema product the brand can be null, so I should not set the brand to null ? For optimization I have to remove the brand prop or ?

{
   productId: "1",
   name: "product",
   brand: string | null;
}

If you omit it, it will take a few less bytes of storage.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.