Unrealm icon indicating copy to clipboard operation
Unrealm copied to clipboard

Why does non-optional types have optional: true?

Open abaig-experlabs opened this issue 2 years ago • 5 comments

subtype { type = string; indexed = NO; isPrimary = NO; array = NO; set = NO; dictionary = NO; optional = YES; } type { type = string; indexed = NO; isPrimary = NO; array = NO; set = NO; dictionary = NO; optional = YES; } swx_stag { type = string; indexed = NO; isPrimary = NO; array = NO; set = NO; dictionary = NO; optional = YES; }

@arturdev 

abaig-experlabs avatar Nov 26 '21 19:11 abaig-experlabs

@arturdev can you help me in this?

abaig-experlabs avatar Nov 27 '21 11:11 abaig-experlabs

What is this? And what help do you need?

arturdev avatar Nov 27 '21 17:11 arturdev

i made an update to ask for requiredProperties just like indexedProperties. It's intended for realm sync. Unrealm-master.zip

abaig-experlabs avatar Nov 28 '21 19:11 abaig-experlabs

I still don't understand what is the problem and what you want to achieve. Can you please elaborate?

arturdev avatar Nov 29 '21 07:11 arturdev

Currently, there is no way to specify required properties. Why I need this is because of realm sync. Realm sync is used to sync ream data on MongoDB cloud which is realm's database. So in order to make it compatible with realm sync, i added some updates in the code and sent it to you.

abaig-experlabs avatar Nov 29 '21 09:11 abaig-experlabs