Need advice about which tool to choose?Ask the StackShare community!

graphql.js

84
85
+ 1
0
OData

55
134
+ 1
35
Add tool

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.

Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of graphql.js
Pros of OData
    Be the first to leave a pro
    • 7
      Patterns for paging, sorting, filtering
    • 5
      ISO Standard
    • 4
      Query Language
    • 3
      RESTful
    • 3
      No overfetching, no underfetching
    • 2
      Get many resources in a single request
    • 2
      Self-documenting
    • 2
      Batch requests
    • 2
      Bulk requests ("array upsert")
    • 2
      Ask for what you need, get exactly that
    • 1
      Evolve your API by following the compatibility rules
    • 1
      Resource model defines conventional operations
    • 1
      Resource Modification Language

    Sign up to add or upvote prosMake informed product decisions

    Cons of graphql.js
    Cons of OData
      Be the first to leave a con
      • 1
        Overwhelming, no "baby steps" documentation

      Sign up to add or upvote consMake informed product decisions

      - No public GitHub repository available -

      What is graphql.js?

      Lightest GraphQL client with intelligent features. You can download graphql.js directly, or you can use Bower or NPM.

      What is OData?

      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.

      Need advice about which tool to choose?Ask the StackShare community!

      What companies use graphql.js?
      What companies use OData?
      See which teams inside your own company are using graphql.js or OData.
      Sign up for StackShare EnterpriseLearn More

      Sign up to get full access to all the companiesMake informed product decisions

      What tools integrate with graphql.js?
      What tools integrate with OData?

      Sign up to get full access to all the tool integrationsMake informed product decisions

      What are some alternatives to graphql.js and OData?
      GraphQL
      GraphQL is a data query language and runtime designed and used at Facebook to request and deliver data to mobile and web apps since 2012.
      Cube
      Cube: the universal semantic layer that makes it easy to connect BI silos, embed analytics, and power your data apps and AI with context.
      Apollo
      Build a universal GraphQL API on top of your existing REST APIs, so you can ship new application features fast without waiting on backend changes.
      SQL
      SQL is designed for managing data held in a relational database management system (RDBMS), or for stream processing in a relational data stream management system (RDSMS).
      Prisma
      Prisma is an open-source database toolkit. It replaces traditional ORMs and makes database access easy with an auto-generated query builder for TypeScript & Node.js.
      See all alternatives