Skip to content

SnehalAgrawal/about-react-dummy-graphql-apis

Repository files navigation

To Run the Project

  • Clone Repo

    git clone https://github.com/SnehalAgrawal/about-react-dummy-graphql-apis.git
  • Jump into the directory

    cd about-react-dummy-graphql-apis
  • Install:

     npm install
  • Run the app:

     npm start

APIs and Payload

  1. To get complete User List

    query users {
      users {
        name
        age
        email
        address
        password
      }
    }
  2. To get Single User Detail

    query user {
      user(email: "newuser@gmail.com") {
        name
        age
        email
        address
        password
     }
    }
  3. To Create User

    mutation createUser {
      createUser(
        name: "New User"
        email: "newuser@gmail.com"
        age: 25
        address: "Demo Address"
        password: "12345"
      )
    }
  4. To Update User

    mutation updateUser {
      updateUser(
        name: "Some Name"
        email: "newuser@gmail.com"
        age: 30
        address: "Demo1 Address"
      )
    }
    
  5. To Delete User

    mutation deleteUser {
      deleteUser(
        email: "newuser@gmail.com"
      )
    }
  6. To Subscribe Realtime User Creation Event

    subscription userAdded {
     userAdded{
       name
       age
       email
       address
       password
     }
    }

By

AboutReact

About

Dummy GraphQL APIs from AboutReact (https://aboutreact.com)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published