Nodejs Graphql Mysql Example

screenshot of Nodejs Graphql Mysql Example
express

An example Express based app implementing a GraphQL API using MySQL as its datastore

Overview

This is an experimental example demonstrating the integration of GraphQL with MySQL using NodeJS. The project showcases how to implement a GraphQL API by matching graphql-js with MySQL. It emphasizes the use of async-await support in the NodeJS version for execution.

Features

  • GraphQL Integration: Demonstrates the use of GraphQL with MySQL for implementing a GraphQL API.
  • Async-Await Support: Requires NodeJS version with async-await support for seamless operation.
  • Example Operations: Provides operations like showing all bacons, filtering bacons by price, getting a bacon by ID, adding a new bacon, and updating a bacon.
  • SQL Schema Export: Example SQL schema export is available in the ./sql/exapp.sql directory.
  • License: The project is licensed under MIT.

Summary

This NodeJS GraphQL MySQL example provides a practical illustration of how GraphQL can be implemented with MySQL using NodeJS. It showcases key features, requires async-await support, offers example operations for manipulating data, and includes a pre-defined SQL schema for setup. The project is licensed under MIT, making it accessible for various use cases.

express
Express

Express.js is a simple Node.js framework for single, multi-page, and hybrid web applications.

graphql
Graphql

A website that uses GraphQL as a query language to manage data fetching and state management. This includes features such as a strongly typed schema, client-side caching, and declarative data fetching to streamline data management and optimize website performance.