Replies: 1 comment
-
|
This is quite simple to implement: in the validation method. I see there could be 3 different cases:
WDYT? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Dear All,
It seems there ArcadeDB has currently no way to set up a type in way such that only properties can be added that were defined in a schema. And in case a record is inserted that contains a property that is not in the schema, an error is thrown; for example:
This works, as it is expected for the document model. I would like to propose a variant of a type definition making the
INSERTabove illegal.A way to do that practically would be a new attribute named ie
LOCKED, so the following could be used:After this type alteration, the above
INSERTwould throw an error.There maybe syntactically other (better) ways to "lock" a type as well as other (better) names than
LOCKED, please feel free to suggest alternatives.Thank you for considering my proposal
Beta Was this translation helpful? Give feedback.
All reactions