Software Alternatives, Accelerators & Startups

graphql.js VS Adonis JS

Compare graphql.js VS Adonis JS and see what are their differences

Note: These products don't have any matching categories. If you think this is a mistake, please edit the details of one of the products and suggest appropriate categories.

graphql.js logo graphql.js

A reference implementation of GraphQL for JavaScript - graphql/graphql-js

Adonis JS logo Adonis JS

AdonisJs is a Node.js web framework with breath of fresh air and drizzle of elegant syntax on top of it
  • graphql.js Landing page
    Landing page //
    2023-08-27
  • Adonis JS Landing page
    Landing page //
    2023-10-20

graphql.js features and specs

  • Strongly Typed
    GraphQL.js allows for strongly typed schemas, making it easier to perform validation and introspection on your data, ensuring that queries conform to a specific structure before execution.
  • Efficient Data Fetching
    GraphQL.js enables clients to request exactly the data they need which can reduce over-fetching and under-fetching compared to REST APIs.
  • Rich Developer Tooling
    The introspection capabilities in GraphQL.js allow for rich tooling, enabling better development workflows including robust IDE support and tools like GraphiQL.
  • Evolving APIs
    GraphQL.js facilitates evolving APIs without the need for versioning, providing backward compatibility by introducing non-breaking changes.
  • Community Support
    GraphQL.js has a large and active community, providing numerous resources, plugins, and tools that support smooth development processes.

Possible disadvantages of graphql.js

  • Complexity
    Implementing GraphQL.js can add complexity to projects as developers may need to learn new concepts such as schemas, resolvers, and query languages.
  • Overhead
    The flexibility of GraphQL.js can introduce performance overhead, as the server may need to parse and execute more complex and dynamic queries.
  • Cache Invalidation
    Caching strategies for GraphQL.js can be more complex compared to REST, as caching needs to account for the structure and specifics of the queries requested.
  • Over-fetching Risks
    While GraphQL.js mitigates data over-fetching, it can also expose sensitive data if developers are not meticulous in specifying and controlling the schema and access permissions.
  • Debugging Complexity
    Debugging runtime errors in GraphQL.js can sometimes be more difficult, especially with deeply nested queries and complex resolvers.

Adonis JS features and specs

  • Modern Eco-System
    AdonisJS uses the latest JavaScript (ES6/ES7) features, providing an up-to-date and efficient development environment. This includes async/await for handling asynchronous code, making it easier to write and understand.
  • ORM Support
    The framework includes a built-in ORM called Lucid, which simplifies database interactions by allowing developers to work with database records through straightforward JavaScript models.
  • MVC Architecture
    AdonisJS follows the Model-View-Controller (MVC) design pattern, which helps organize code in a clean and maintainable manner, making it easier to manage large applications.
  • Built-In Authentication and Authorization
    AdonisJS comes with out-of-the-box solutions for user authentication and authorization, reducing the time required to set up these critical features in applications.
  • Thorough Documentation
    AdonisJS provides comprehensive and well-maintained documentation, which makes it easier for developers to get started and find solutions to their problems quickly.
  • Rich CLI
    The Command Line Interface (CLI) for AdonisJS is rich with features, facilitating a range of tasks from project scaffolding to running migrations, thus speeding up the development process.

Possible disadvantages of Adonis JS

  • Learning Curve
    Although the framework is well-documented, its rich set of features and unique conventions can present a steep learning curve for beginners or those new to JavaScript frameworks.
  • Limited Ecosystem
    Compared to more established frameworks like Express.js or Laravel, AdonisJS has a smaller ecosystem of third-party packages and community resources.
  • Performance Overhead
    Due to its comprehensive feature set, AdonisJS can have more performance overhead compared to microframeworks that offer more control and fewer built-in features.
  • Smaller Community
    While growing, the community around AdonisJS is still smaller than that of other established frameworks. This can sometimes make it more challenging to find community-driven support and solutions.
  • Rapid Changes
    As a relatively new framework, AdonisJS undergoes frequent updates and changes. Keeping up with these changes can demand additional effort from developers.

graphql.js videos

No graphql.js videos yet. You could help us improve this page by suggesting one.

Add video

Adonis JS videos

Tutoriel NodeJS : Découverte d'Adonis

Category Popularity

0-100% (relative to graphql.js and Adonis JS)
Project Management
100 100%
0% 0
Web Frameworks
0 0%
100% 100
Development
34 34%
66% 66
Developer Tools
0 0%
100% 100

User comments

Share your experience with using graphql.js and Adonis JS. For example, how are they different and which one is better?
Log in or Post with

Social recommendations and mentions

Based on our record, Adonis JS should be more popular than graphql.js. It has been mentiond 79 times since March 2021. We are tracking product recommendations and mentions on various public social media platforms and blogs. They can help you identify which product is more popular and what people think of it.

graphql.js mentions (8)

  • Diving into Open-Source Development
    To begin, I'm going to start with GraphQL. This repo is a JS-specific implementation for GraphQL, for which projects written in JS/TS can utilize to build an API for their web app. The reason why I chose this project is because I've always been intrigued by how GraphQl challenges the standard way of building an API, a.k.a REST APIs. I have very little knowledge about this project since I've never used it before at... - Source: dev.to / over 1 year ago
  • How to define schema once and have server code and client code typed? [Typescript]
    When I asked this in StackOverflow over a year ago I reached the solution of using graphql + graphql-zeus. Source: almost 2 years ago
  • Apollo federated graph is not presenting its schema to graphiql with fields sorted lexicographically
    GraphiQL (and many other tools) relies on introspection query which AFAIK is not guaranteed to have any specific order (and many libs don't support it). Apollo Server is built on top of graphql-js and it relies on it for this functionality. Source: over 2 years ago
  • How (Not) To Build Your Own GraphQL Server
    Defining your schema and the resolvers simultaneously led to some issues for developers, as it was hard to decouple the schema from the (business) logic in your resolvers. The SDL-first approach introduced this separation of concerns by defining the complete schema before connecting them to the resolvers and making this schema executable. A version of the SDL-first approach was introduced together with GraphQL... - Source: dev.to / over 3 years ago
  • three ways to deploy a serverless graphQL API
    Graphql-yoga is built on other packages that provide functionality required for building a GraphQL server such as web server frameworks like express and apollo-server, GraphQL subscriptions with graphql-subscriptions and subscriptions-transport-ws, GraphQL engine & schema helpers including graphql.js and graphql-tools, and an interactive GraphQL IDE with graphql-playground. - Source: dev.to / over 3 years ago
View more

Adonis JS mentions (79)

  • The One-Person Framework in Practice
    I'm currently building out an app using AdonisJS. Its billed as a Rails like experience but in node. https://adonisjs.com/ I did a comparison between Rails, Adonis and Fiber (a Go "framework") before settling on Adonis (mostly due to node ecosystem and type safety). It's been excellent so far, and the creator has an excellent series of tutorial videos that can get you up to speed quickly... - Source: Hacker News / 5 days ago
  • My Software Development Process
    Database Migration files and Models: For my backend, my go to NodeJs framework is AdonisJS. I love it because it comes with libraries for building production ready applications out of the box such as auth, emails, CORS, migrations, seeders, etc. It also uses Typescript. So, I create a basic AdonisJS app, and using my Database design, I prepare database migration files and models that match, This is easy because... - Source: dev.to / about 1 month ago
  • Validate your data structures with Vine in your Dart projects
    Vine is a data validation library developed by Harminder Virk for the Adonis framework. - Source: dev.to / 2 months ago
  • Web apps built with Ruby on Rails
    Have you checked https://adonisjs.com/ ? Seems it follows the Rails / Laravel way of doing things. - Source: Hacker News / 4 months ago
  • Rails is better low code than low code
    Https://adonisjs.com/ Adonis.js is just that. I have never used it beyond a quick test though so I can't say what it is like in production. - Source: Hacker News / 5 months ago
View more

What are some alternatives?

When comparing graphql.js and Adonis JS, you can also consider the following products

JsonAPI - Application and Data, Languages & Frameworks, and Query Languages

ExpressJS - Sinatra inspired web development framework for node.js -- insanely fast, flexible, and simple

Apollo - Apollo is a full project management and contact tracking application.

Nest.js - A progressive Node.js framework for building efficient, reliable and scalable server-side applications.

OData - OData, short for Open Data Protocol, is an open protocol to allow the creation and consumption of queryable and interoperable RESTful APIs in a simple and standard way.

Koa.js - Next generation web framework for node.js