Skip to content

We are starting our Graphql implementation lesson! In this lesson, we are starting from a state of our application where we don't have sagas but are leveraging redux for local state storage.

Notifications You must be signed in to change notification settings

tolalitnegi/graphql-setup

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GraphQL Setup

setup

  • nvm use 10
  • npm i
  • npm audit fix
  • npm start

alt GraphQl Architecture

Exposes single endpoint not like REST, all CRUDS operation to it.

  • Query: get request / ask for data, not only what needed but the attributes also
  • Mutation: POST / PUT
/graphQl - employeeDetails {
  name,
  empId,
  address: {
    city,
    postcode
  }
  age
}
  • graphql schema , type of objects and attributes , ! means mandatory
- query {
   employees {
     name ,
     empId
   }
}

=> output is

{
  "data": {
    "employees":{

    }
  }
}

redux replaced with apollo

About

We are starting our Graphql implementation lesson! In this lesson, we are starting from a state of our application where we don't have sagas but are leveraging redux for local state storage.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 83.2%
  • SCSS 13.1%
  • HTML 2.8%
  • CSS 0.9%