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

GraphQL

33.1K
27.2K
+ 1
310
Sails.js

337
509
+ 1
296
Add tool

GraphQL vs Sails.js: What are the differences?

What is GraphQL? A data query language and runtime. 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.

What is Sails.js? Realtime MVC Framework for Node.js. Sails is designed to mimic the MVC pattern of frameworks like Ruby on Rails, but with support for the requirements of modern apps: data-driven APIs with scalable, service-oriented architecture.

GraphQL can be classified as a tool in the "Query Languages" category, while Sails.js is grouped under "Microframeworks (Backend)".

"Schemas defined by the requests made by the user" is the top reason why over 61 developers like GraphQL, while over 41 developers mention "Data-driven apis " as the leading cause for choosing Sails.js.

GraphQL and Sails.js are both open source tools. It seems that Sails.js with 20.6K GitHub stars and 1.85K forks on GitHub has more adoption than GraphQL with 11.7K GitHub stars and 752 GitHub forks.

Twitter, Intuit, and Yelp are some of the popular companies that use GraphQL, whereas Sails.js is used by TestLegends, HYPH, and Giguana. GraphQL has a broader approval, being mentioned in 541 company stacks & 716 developers stacks; compared to Sails.js, which is listed in 32 company stacks and 12 developer stacks.

Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of GraphQL
Pros of Sails.js
  • 75
    Schemas defined by the requests made by the user
  • 63
    Will replace RESTful interfaces
  • 62
    The future of API's
  • 49
    The future of databases
  • 13
    Self-documenting
  • 12
    Get many resources in a single request
  • 6
    Query Language
  • 6
    Ask for what you need, get exactly that
  • 3
    Fetch different resources in one request
  • 3
    Type system
  • 3
    Evolve your API without versions
  • 2
    Ease of client creation
  • 2
    GraphiQL
  • 2
    Easy setup
  • 1
    "Open" document
  • 1
    Fast prototyping
  • 1
    Supports subscription
  • 1
    Standard
  • 1
    Good for apps that query at build time. (SSR/Gatsby)
  • 1
    1. Describe your data
  • 1
    Better versioning
  • 1
    Backed by Facebook
  • 1
    Easy to learn
  • 49
    Data-driven apis
  • 47
    Waterline ORM
  • 37
    Mvc
  • 32
    Easy rest
  • 25
    Real-time
  • 21
    Open source
  • 19
    Service-oriented architecture
  • 18
    Scalable
  • 10
    Convension over configuration
  • 9
    Rails-like asset pipeline
  • 9
    Node machines and machinepacks
  • 7
    Easy route/controller generation
  • 6
    Ruby on Rails basic stuff for JS devs
  • 3
    CLI for scaffolding project pieces
  • 3
    WebSocket support
  • 1
    Supportive community

Sign up to add or upvote prosMake informed product decisions

Cons of GraphQL
Cons of Sails.js
  • 4
    Hard to migrate from GraphQL to another technology
  • 4
    More code to type.
  • 2
    Takes longer to build compared to schemaless.
  • 1
    No support for caching
  • 1
    All the pros sound like NFT pitches
  • 1
    No support for streaming
  • 1
    Works just like any other API at runtime
  • 1
    N+1 fetch problem
  • 1
    No built in security
  • 5
    Waterline ORM
  • 4
    Defaults to VueJS
  • 0
    Standard MVC

Sign up to add or upvote consMake informed product decisions

- No public GitHub repository available -

What is 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.

What is Sails.js?

Sails is designed to mimic the MVC pattern of frameworks like Ruby on Rails, but with support for the requirements of modern apps: data-driven APIs with scalable, service-oriented architecture.

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

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

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

What tools integrate with GraphQL?
What tools integrate with Sails.js?

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

Blog Posts

GitHubDockerReact+17
40
36257
GitHubPythonNode.js+47
54
72306
What are some alternatives to GraphQL and Sails.js?
gRPC
gRPC is a modern open source high performance RPC framework that can run in any environment. It can efficiently connect services in and across data centers with pluggable support for load balancing, tracing, health checking...
Falcor
Falcor lets you represent all your remote data sources as a single domain model via a virtual JSON graph. You code the same way no matter where the data is, whether in memory on the client or over the network on the server.
React
Lots of people use React as the V in MVC. Since React makes no assumptions about the rest of your technology stack, it's easy to try it out on a small feature in an existing project.
graphql.js
Lightest GraphQL client with intelligent features. You can download graphql.js directly, or you can use Bower or NPM.
MongoDB
MongoDB stores data in JSON-like documents that can vary in structure, offering a dynamic, flexible schema. MongoDB was also designed for high availability and scalability, with built-in replication and auto-sharding.
See all alternatives