Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/smerth/graphql-mongo-mysql-tutorial
Tutorial project for learning how to implement a Graphql server with a Mongo and a SQLite backend.
https://github.com/smerth/graphql-mongo-mysql-tutorial
express-js graphql mongodb mongoose node-js
Last synced: 6 days ago
JSON representation
Tutorial project for learning how to implement a Graphql server with a Mongo and a SQLite backend.
- Host: GitHub
- URL: https://github.com/smerth/graphql-mongo-mysql-tutorial
- Owner: smerth
- Created: 2018-02-26T21:49:43.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-07T17:38:05.000Z (almost 2 years ago)
- Last Synced: 2024-04-15T00:13:18.309Z (7 months ago)
- Topics: express-js, graphql, mongodb, mongoose, node-js
- Language: JavaScript
- Homepage:
- Size: 919 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GraphQL Tutorial with Mongo DB and SQLite DB
A GraphQL server built with NodeJS using ExpressJS. Data persistence on the backend is provided by either a MongoDB DB or an SQLite DB.
![App Screenshot](https://raw.githubusercontent.com/smerth/graphql-mongo-mysql-tutorial/master/screenshot.png)
## Use
* clone the repo
* install dependancies```bash
yarn install
```* run the GraphQL server
```bash
yarn start
```Running server on port `localhost:8080/graphiql`
You can perform queries and mutations through the GraphiQL interface for Freind entities and Alien entities.
For a full explanation of the build see the docs folder.
## Releases
* 1.0.0 - express server with es6 support.
* 1.1.0 - initial GraphQL setup.
* 1.2.0 - basic GraphQL schema.
* 1.3.0 - object types and fields.
* 1.4.0 - query and mutation types.
* 1.5.0 - the resolver and its role.
* 1.6.0 - scalar types.
* 1.7.0 - ennumeration types.
* 1.8.0 - list of types inside another.
* 1.9.0 - setup of graphql with mongodb.
* 1.10.0 - setup of eslint and prettier.
* 1.11.0 - data persistence with sql.
* 1.12.0 - update items with mutations.
* 1.13.0 - delete items with mutations.
* 1.14.0 - simple query to SQLite DB.
* 1.15.0 - query with arguments.