Need advice about which tool to choose?Ask the StackShare community!
Graphene vs PostGraphile: What are the differences?
Developers describe Graphene as "GraphQL framework for Python". Graphene is a Python library for building GraphQL schemas/types fast and easily. On the other hand, PostGraphile is detailed as "Instant GraphQL API for your PostgreSQL database; use standalone or as a Node.js middleware; MIT-licensed OSS". Execute one command (or mount one Node.js middleware) and get an instant high-performance GraphQL API for your PostgreSQL database.
Graphene and PostGraphile can be categorized as "Query Languages" tools.
Some of the features offered by Graphene are:
- Easy to use: Graphene helps you use GraphQL in Python without effort.
- Relay: Graphene has builtin support for Relay
- Django: Automatic Django model mapping to Graphene Types. Check a fully working Django implementation
On the other hand, PostGraphile provides the following key features:
- instant GraphQL schema via reflection over PostgreSQL database API
- compiles complex GraphQL queries into very few SQL statements resulting in high performance
- built entirely from plugins - heavily customisable
Graphene and PostGraphile are both open source tools. PostGraphile with 7.49K GitHub stars and 364 forks on GitHub appears to be more popular than Graphene with 4.71K GitHub stars and 502 GitHub forks.
Pros of Graphene
- Will replace RESTful interfaces0
- The future of API's0
Pros of PostGraphile
- Postgres based authentication10
- Great developer support6
- Lightning fast5
- Database first with no braking changes5
- Simple to set up and scale4
- Bye bye Resolvers4
- Instant production ready GraphQL2
- Easy setup of relationships and permissions2
- 9 Automatically generates your GraphQL schema2
- Back to database first2
- Works with new and existing databases1