Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

GraphQL

This project demonstrates how to use GraphQL to fetch data from two different REST APIs, merge the results, and expose a unified API for frontend consumption.

Features

  • Fetches data from two separate APIs.
  • Merges the responses into a single structured output.
  • Exposes a GraphQL endpoint for frontend requests.

Tech Stack

  • Node.js
  • Express.js
  • Apollo Server (GraphQL)
  • Axios (for fetching external APIs)

Installation

  1. Clone the repository:
  https://github.com/Arnab7456/Graphql.git
   cd Graphql
  1. Install dependencies:

    yarn
  2. Start the server:

    yarn index.js
  3. Access GraphQL Playground at:

    http://localhost:3000/graphql
    

Example Query

query GetAllTodos{
  getTodo {
    title
    completed
    user {
      name
      email
      phone
    }
  }
}

API Sources

  • https://jsonplaceholder.typicode.com/todos/
  • https://jsonplaceholder.typicode.com/users

License

MIT

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages