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

GraphQL

30K
24.8K
+ 1
300
Prisma

750
809
+ 1
52
Add tool

GraphQL vs Prisma: 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 Prisma? Prisma makes working with databases easy. Prisma is a powerful database tool used for data access, migrations and visual data management. It replaces traditional ORMs and removes friction from complicated database workflows.

GraphQL and Prisma can be categorized as "Query Languages" tools.

Some of the features offered by GraphQL are:

  • Hierarchical
  • Product-centric
  • Client-specified queries

On the other hand, Prisma provides the following key features:

  • Simplified & type-safe database access
  • Declarative migrations & data modeling
  • Powerful & visual data management

GraphQL and Prisma are both open source tools. It seems that Prisma with 14.7K GitHub stars and 857 forks on GitHub has more adoption than GraphQL with 11.7K GitHub stars and 752 GitHub forks.

StackShare, Twitter, and Intuit are some of the popular companies that use GraphQL, whereas Prisma is used by Powersports Auction, Seistreinta, and AnkaWorld. GraphQL has a broader approval, being mentioned in 541 company stacks & 715 developers stacks; compared to Prisma, which is listed in 14 company stacks and 14 developer stacks.

Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of GraphQL
Pros of Prisma
  • 74
    Schemas defined by the requests made by the user
  • 62
    Will replace RESTful interfaces
  • 60
    The future of API's
  • 48
    The future of databases
  • 12
    Self-documenting
  • 11
    Get many resources in a single request
  • 5
    Query Language
  • 5
    Ask for what you need, get exactly that
  • 3
    Fetch different resources in one request
  • 3
    Evolve your API without versions
  • 3
    Type system
  • 2
    Easy setup
  • 2
    GraphiQL
  • 2
    Ease of client creation
  • 1
    Good for apps that query at build time. (SSR/Gatsby)
  • 1
    Backed by Facebook
  • 1
    Easy to learn
  • 1
    "Open" document
  • 1
    Better versioning
  • 1
    Standard
  • 1
    1. Describe your data
  • 1
    Fast prototyping
  • 11
    Type-safe database access
  • 10
    Open Source
  • 8
    Auto-generated query builder
  • 6
    Supports multible database systems
  • 6
    Increases confidence during development
  • 4
    Productive application development
  • 4
    Built specifically for Postgres and TypeScript
  • 2
    Supports multible RDBMSs
  • 1
    Robust migrations system

Sign up to add or upvote prosMake informed product decisions

Cons of GraphQL
Cons of Prisma
  • 4
    Hard to migrate from GraphQL to another technology
  • 4
    More code to type.
  • 2
    Takes longer to build compared to schemaless.
  • 1
    All the pros sound like NFT pitches
  • 1
    Works just like any other API at runtime
  • 2
    Doesn't support downward/back migrations
  • 1
    Doesn't support JSONB
  • 1
    Do not support JSONB
  • 1
    Mutation of JSON is really confusing
  • 1
    Do not support JSONB
  • 0
    Jjj

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

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

What companies use GraphQL?
What companies use Prisma?
See which teams inside your own company are using GraphQL or Prisma.
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 Prisma?

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

Blog Posts

GitHubDockerReact+17
35
34328
GitHubPythonNode.js+47
53
71231
What are some alternatives to GraphQL and Prisma?
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