Skip to content

Complete end-to-end example of graphql federation using netflix DGS framework

Notifications You must be signed in to change notification settings

lakshay2395/graphql-federation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

graphql-federation

Complete end-to-end example of graphql federation using netflix DGS framework

It consists of three components -

  • Product Inventory Service
  • Customer Service
  • Order Service

System Overview

Complete System Flow

Start the services

  • Start the service(s)
mvn spring-boot:run
  • Start the federated gateway
nodemon start

Major Queries

  • Add Product(s)
mutation AddProduct($productInput0: ProductInput, $productInput1: ProductInput, $productInput2: ProductInput) {
    add0: addProduct(product: $productInput0) {
        id
        name
        type
        cost
    }
    add1: addProduct(product: $productInput1) {
        id
        name
        type
        cost
    }
    add2: addProduct(product: $productInput2) {
        id
        name
        type
        cost
    }
}
  • Add Customer
mutation AddCustomer($customer: CustomerInput){
    addCustomer(customer: $customer){
        id
        firstName
        lastName
        emailId
        profilePicURL
    }
}
  • Add Order
mutation AddOrder($order: OrderInput){
    addOrder(order: $order){
        customer {
            emailId
            firstName
            id
            lastName
            profilePicURL
        }
        id
        products {
            cost
            id
            name
            type
        }
        status
    }
}

About

Complete end-to-end example of graphql federation using netflix DGS framework

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages