Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including odata-server with all npm packages installed. Try it out:

var odataServer = require("odata-server")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

odata-server v1.3.7

JayData Server

#JayData Server OData server NPM module for node.js with MongoDB

JayData Server is here for you if you want to set up your own OData endpoint in node.js environment with MongoDB or SQLite support. Why wouldn’t you extend your JayData skillset to the server-side? JayData Server can be accessed using JayData library or any other OData client and it covers a wide range of features of OData protocol.


$ npm install odata-server

##Northwind and NewsReader OData servers

There are two example servers included. Northwind and NewsReader.

$ node newsreader.js
$ node northwind.js

##Supported OData v2 features

  • XML/JSON format
  • $metadata generation
  • $count
  • $inlinecount
  • $filter (eq, ne, lt, le, gt, ge, startswith, endswith, substringof, and, or)
  • $select
  • $top
  • $skip
  • $expand - Navigation properties
  • $orderbyService operations
  • Full CRUD

#Supported OData v3 features

  • Geo types
  • Geo queries (geo.distance(), geo.intersects()) (with JayData mongoDB Pro provider)
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free