# How to configure Mongodb node and insert the data in Local Mongodb?

**URL:** <https://discourse.nodered.org/t/how-to-configure-mongodb-node-and-insert-the-data-in-local-mongodb/594>\
**Category:** General\
**Created:** [4 June 2018 06:10 UTC](https://discourse.nodered.org/t/how-to-configure-mongodb-node-and-insert-the-data-in-local-mongodb/594 "2018-06-04T06:10:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![variyaSandip](https://avatars.discourse-cdn.com/v4/letter/v/ec9cab/32.png) [@variyaSandip](https://discourse.nodered.org/u/variyaSandip)\
**Post date:** [4 June 2018 06:10 UTC](https://discourse.nodered.org/t/how-to-configure-mongodb-node-and-insert-the-data-in-local-mongodb/594/1 "2018-06-04T06:10:48Z")

</div>

I configure mongodb node to my local mongodb  
URL : mongodb/localhost:27017/test  
Name : Insert  
and then Deploy  
Getting the error "Invalid schema, expected `mongodb` or `mongodb+srv`"

Please any one, share configuration to mongodb settings.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [4 June 2018 07:39 UTC](https://discourse.nodered.org/t/how-to-configure-mongodb-node-and-insert-the-data-in-local-mongodb/594/2 "2018-06-04T07:39:20Z")

</div>

I don’t use mongodb but a search for that error message suggests that maybe you should be using

```auto
mongodb://localhost:27017/test

```

I might be talking rubbish however.

---

<div class="post-metadata">

**Author:** ![variyaSandip](https://avatars.discourse-cdn.com/v4/letter/v/ec9cab/32.png) [@variyaSandip](https://discourse.nodered.org/u/variyaSandip)\
**Post date:** [4 June 2018 09:30 UTC](https://discourse.nodered.org/t/how-to-configure-mongodb-node-and-insert-the-data-in-local-mongodb/594/3 "2018-06-04T09:30:09Z")

</div>

Colin , Thanks for suggests,

i was tried to mongodb://localhost:27017/test url configured to successfully connection to my local mongodb.

how to possible to My sensor data to insert local mongodb ?

i was try to getting error : TypeError: Cannot create property ‘\_id’ on string ‘Temp=31 || X=1 || y=-1 || z=65’

could you please help me for this an error and suggests any way to insert data in mongodb .

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [4 June 2018 10:07 UTC](https://discourse.nodered.org/t/how-to-configure-mongodb-node-and-insert-the-data-in-local-mongodb/594/4 "2018-06-04T10:07:38Z")

</div>

As I said I haven’t used mongodb but if you put a debug node to show the message you are sending to the node (I am assuming it is the mongodb node that displays this error) and compare that with the documentation for the node then you may see the problem. If you can’t see the problem then paste a screenshot of the debug node output and someone may be able to help.
