Hi there,
I have a field which is a two dimensional array that I am trying to build into a schema. The field is a set of x,y coordinates, e.g. [[1.0,1.0],[2.0,2.0],[3.0,3.0]].
The schema I am trying to apply is
{
"title": "locations",
"bsonType": "object",
"required": [
"_id",
],
"properties": {
"_id": {
"bsonType": "objectId"
},
"boundary": {
"title": "points",
"bsonType": "array",
"uniqueItems": false,
"items": {
"title": "xy",
"bsonType": "array",
"uniqueItems": false,
"items": {
"bsonType": "double"
}
}
}
}
}
This validates fine, but the error I am getting from the client is ‘Client query is invalid/malformed (IDENT, QUERY)’.
Is what I am trying to do possible? Any guidance anyone can give would be really appreciated!
Thanks.