Skip to content

Instantly share code, notes, and snippets.

@johnlpage
Created February 7, 2022 16:15
Show Gist options
  • Save johnlpage/461e0ef694fd7f7d7446af8c63957b42 to your computer and use it in GitHub Desktop.
Save johnlpage/461e0ef694fd7f7d7446af8c63957b42 to your computer and use it in GitHub Desktop.
{
"errInfo": {
"failingDocumentId": "test",
"details": {
"operatorName": "$and",
"clausesNotSatisfied": [
{
"index": 0,
"details": {
"operatorName": "$expr",
"specifiedAs": {
"$expr": {
"$eq": [
"$cksum",
{
"$let": {
"vars": {
"s": {
"$reduce": {
"input": [
"$x",
"$y",
"$s"
],
"initialValue": "",
"in": {
"$concat": [
"$$value",
{
"$toString": "$$this"
},
"."
]
}
}
}
},
"in": {
"$reduce": {
"input": {
"$range": [
0,
{
"$strLenCP": "$$s"
}
]
},
"initialValue": 56781234,
"in": {
"$mod": [
{
"$add": [
"$$value",
{
"$multiply": [
{
"$pow": [
227,
{
"$mod": [
{
"$add": [
"$$this",
1
]
},
6
]
}
]
},
{
"$add": [
1,
{
"$convert": {
"to": "int",
"onError": 10,
"input": {
"$substrCP": [
"$$s",
"$$this",
1
]
}
}
}
]
}
]
}
]
},
1048576
]
}
}
}
}
}
]
}
},
"reason": "expression did not match",
"expressionResult": false
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment