pofider / node-simple-odata-server

Simple OData server for node.js
MIT License
97 stars 60 forks source link

Defect(?): Need sample for use with Mongodb #33

Open lboening opened 6 years ago

lboening commented 6 years ago

I am bit puzzled. I cannot get a sample to work

I can get the plain sample to work. The next one, I cannot. Can you check the Gist?

Mongodb

Here's what I got. I must have set something wrong Gist

pofider commented 6 years ago

This gist works for me if I change line

var odataServer = ODataServer('http://localhost:1338').model(model);
lboening commented 6 years ago

I have made progress, but now I am blocked. The mongodb client does not get anything from my link to a Mongodb at Atlas cluster. Would you be able to check my syntax? Link to Gist

Question: can the Mongoclient handle a URL to Atlas? Link to Atlas docs

pofider commented 6 years ago

Sure it can connect to atlas. However this is not related to this package and I keep it up to you to find out how.

emasjin commented 5 years ago

Hello pofider, i am also need a sample for mongodb, i dont know how to modify the simple.js file to suit mongodb.Thanks.