Need advice about which tool to choose?Ask the StackShare community!
graphql.js vs Prisma: What are the differences?
What is 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.
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.js and Prisma can be primarily classified as "Query Languages" tools.
Some of the features offered by graphql.js are:
- No dependencies, plain vanilla JavaScript.
- Plug & Play.
- Isomorphic.
On the other hand, Prisma provides the following key features:
- Simplified & type-safe database access
- Declarative migrations & data modeling
- Powerful & visual data management
graphql.js and Prisma are both open source tools. Prisma with 14.9K GitHub stars and 872 forks on GitHub appears to be more popular than graphql.js with 1.96K GitHub stars and 62 GitHub forks.
Pros of graphql.js
Pros of Prisma
- Type-safe database access12
- Open Source10
- Auto-generated query builder8
- Supports multible database systems6
- Increases confidence during development6
- Built specifically for Postgres and TypeScript4
- Productive application development4
- Supports multible RDBMSs2
- Robust migrations system2
Sign up to add or upvote prosMake informed product decisions
Cons of graphql.js
Cons of Prisma
- Doesn't support downward/back migrations2
- Doesn't support JSONB1
- Do not support JSONB1
- Mutation of JSON is really confusing1
- Do not support JSONB1