From e5c0b88f4faad483eac5144b424c176de9bd14a8 Mon Sep 17 00:00:00 2001 From: Charlie Fish Date: Sun, 5 Apr 2020 20:33:19 -0600 Subject: [PATCH] Adding note in docs about passing condition instance into condition initializer --- docs/api/Condition.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/api/Condition.md b/docs/api/Condition.md index e37fbc768..b4f429555 100644 --- a/docs/api/Condition.md +++ b/docs/api/Condition.md @@ -9,6 +9,7 @@ This is the basic entry point to construct a conditional. The filter property is ```js new dynamoose.Condition("breed").contains("Terrier") // will condition for where the key `breed` contains `Terrier` new dynamoose.Condition({"breed": {"contains": "Terrier"}}) // will condition for where the key `breed` contains `Terrier` +new dynamoose.Condition(new dynamoose.Condition({"breed": {"contains": "Terrier"}})) // will condition for where the key `breed` contains `Terrier` ``` If you pass an object into `new dynamoose.Condition()` the object for each key should contain the comparison type. For example, in the last example above, `contains` was our comparison type. This comparison type must match one of the comparison type functions listed on this page.