# MongoDB - Expression Binding - Filter

**URL:** <https://forum.inductiveautomation.com/t/mongodb-expression-binding-filter/108630>\
**Category:** Ignition\
**Tags:** database, perspective\
**Created:** [July 17, 2025, 5:50pm UTC](https://forum.inductiveautomation.com/t/mongodb-expression-binding-filter/108630 "2025-07-17T17:50:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![krsteer](https://avatars.discourse-cdn.com/v4/letter/k/f1d935/32.png) [@krsteer](https://forum.inductiveautomation.com/u/krsteer)\
**Post date:** [July 17, 2025, 5:50pm UTC](https://forum.inductiveautomation.com/t/mongodb-expression-binding-filter/108630/1 "2025-07-17T17:50:06Z")

</div>

I am working with the MongoDB Module connected to FANUC MTLinki:  
I am struggling to get the MongoDB Expression Binding to work correctly with filtering dates.

I can get the script to work properly.

Any help is appreciated!

Sample Data from MongoDB:

```python
{ "_id": { "$oid": "12345678" },
 "L1Name": "HAAS_321", 
"updatedate": { "$date": "2024-10-28T13:40:00.000Z" }, 
"enddate": { "$date": "2024-10-28T13:52:26.000Z" }, 
"timespan": 746, 
"signalname": 
"condition",
 "value": "DISCONNECT",
 "filter": null, "TypeID": null, "Judge": null, "Error": null, "Warning": null }

```

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/8/88c6f08465b2d9f841f2f9c66bd7ee72deaf3235.png)

---

<div class="post-metadata">

**Author:** ![dillon](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dillon/32/81537_2.png) [@dillon](https://forum.inductiveautomation.com/u/dillon)\
**Post date:** [July 17, 2025, 5:52pm UTC](https://forum.inductiveautomation.com/t/mongodb-expression-binding-filter/108630/2 "2025-07-17T17:52:48Z")

</div>

I haven't used this module in Ignition before, but were you able to use MongoDB Compass to confirm that the find filter is valid? If you do that, then you are sure it's a syntax issue with the binding in Ignition.

---

<div class="post-metadata">

**Author:** ![krsteer](https://avatars.discourse-cdn.com/v4/letter/k/f1d935/32.png) [@krsteer](https://forum.inductiveautomation.com/u/krsteer)\
**Post date:** [July 17, 2025, 6:18pm UTC](https://forum.inductiveautomation.com/t/mongodb-expression-binding-filter/108630/3 "2025-07-17T18:18:51Z")

</div>

Yes. I have verified the filter in Compass and the syntax worked there:

I headed down a path of setting the filter as an object but it did not work.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/4/34098589e04e55b95ba25b14edb836f14c44e54b.png)

---

<div class="post-metadata">

**Author:** ![samuel.gupta](https://avatars.discourse-cdn.com/v4/letter/s/e99b99/32.png) [@samuel.gupta](https://forum.inductiveautomation.com/u/samuel.gupta)\
**Post date:** [February 2, 2026, 7:37pm UTC](https://forum.inductiveautomation.com/t/mongodb-expression-binding-filter/108630/4 "2026-02-02T19:37:09Z")

</div>

Any update on this? Im having the same issue and I cant find any documentation on how to apply filters this way.

---

<div class="post-metadata">

**Author:** ![krsteer](https://avatars.discourse-cdn.com/v4/letter/k/f1d935/32.png) [@krsteer](https://forum.inductiveautomation.com/u/krsteer)\
**Post date:** [February 25, 2026, 2:28pm UTC](https://forum.inductiveautomation.com/t/mongodb-expression-binding-filter/108630/5 "2026-02-25T14:28:45Z")

</div>

Apologies on the delayed response. I was not able to get the filtering to work as desired. I need to revisit when I have some time. If you have some success please post your findings.
