Need advice about which tool to choose?Ask the StackShare community!
graphql.js vs OData: What are the differences?
graphql.js: A Simple and Isomorphic GraphQL Client for JavaScript. Lightest GraphQL client with intelligent features. You can download graphql.js directly, or you can use Bower or NPM; OData: *A REST-based protocol for querying and updating data *. It is an ISO/IEC approved, OASIS standard that defines a set of best practices for building and consuming RESTful APIs. It helps you focus on your business logic while building RESTful APIs without having to worry about the various approaches to define request and response headers, status codes, HTTP methods, URL conventions, media types, payload formats, query options, etc.
graphql.js and OData can be categorized as "Query Languages" tools.
graphql.js is an open source tool with 1.97K GitHub stars and 65 GitHub forks. Here's a link to graphql.js's open source repository on GitHub.
Pros of graphql.js
Pros of OData
- Patterns for paging, sorting, filtering7
- ISO Standard5
- Query Language4
- RESTful3
- No overfetching, no underfetching3
- Get many resources in a single request2
- Self-documenting2
- Batch requests2
- Bulk requests ("array upsert")2
- Ask for what you need, get exactly that2
- Evolve your API by following the compatibility rules1
- Resource model defines conventional operations1
- Resource Modification Language1
Sign up to add or upvote prosMake informed product decisions
Cons of graphql.js
Cons of OData
- Overwhelming, no "baby steps" documentation1