Hello:
I am using the NODEJS SDK for connect with Realm. I Created this object:
let provinciaSchema = {
name: 'Provincias',
"required": [ "nombreProvincia","_id" ],
properties: {
_id: 'objectId',
nombreProvincia: 'bool',
id: 'int'
},
primaryKey: '_id',
};
It has only two required fields, but in the realm mongodb interface, in the schema, i can see this:
{
"title": "Provincias",
"bsonType": "object",
"required": [
"_id",
"myPartition",
"nombreProvincia",
"id"
],
"properties": {
"_id": {
"bsonType": "objectId"
},
"myPartition": {
"bsonType": "string"
},
"nombreProvincia": {
"bsonType": "bool"
},
"id": {
"bsonType": "long"
}
}
}
Why the schema create three fields like as required if I’ll configurate two?
Thanks