Skip to content

others of my projects but in this case i will use GraphQL, MongoDB, Node JS and Express. I create this project to learn more about this programing languages, databases, technologies and more

Notifications You must be signed in to change notification settings

arorivegt/graphql-mongodb-nodejs-express

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Proect with -> GraphQL MongoDb Node JS and Express

Others of my projects but in this case i will use GraphQL, MongoDB, Node JS and Express. I create this project to learn more about these programing languages, databases, technologies and more

This is my libraries, packages, framework, laguages that i used

#my comand to start my project and create a package.json
npm init --yes

#Installing packages to my project
npm install express graphql apollo-server-express graphql-tools mongoose

#And i have installed babel with other modules of babel and in the command i put -D to add my packages only in the development enviroment
npm install babel-cli babel-core babel-preset-env -D

#this comand is useful when i run my project and nothing happening because the port is already in use (this comand is unix comand)
killall node

# i add to my package.json this scripts to run my project with the comand npm run dev
"scripts": {
    "dev" : "babel-node src/index.js"
  },

this is page to view a difference between apollo-server-express version 1.0 to 2.0

  • Version 1.0 to 2.0 differences Apollo Server Express

  • Express => this is my framework to use node js.

  • graphql => is a data query and manipulation language for API

  • Apollo Server => this is the express and connect integration of GraphQL Server

  • GraphQL Tools => is a set of useful tools for development of GraphQL as schemas and documents loading

  • Babel => is a toolchain that is used to convert ECMAScript 2015+ code into a backwards compatible version of JavaScripts in current and older browsers or enviroments

#Queries in GraphQL
mutation {
  createCar(name: "Tesla Model x"){
    _id
    name
  }
}

{
  allCars{
    _id
    name
  }
}

About

others of my projects but in this case i will use GraphQL, MongoDB, Node JS and Express. I create this project to learn more about this programing languages, databases, technologies and more

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published