Skip to content

choco14t/example-gateway-logging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gateway Logging Example

A simple logging example of GraphQL Federation. This project using stack below.

  • NestJS (Express, Code First)
  • Apollo Gateway
  • Apollo Federation

Run application

Launch the two applications first, then the gateway. Otherwise the gateway failed launch.

cd application-posts && yarn start
cd application-users && yarn start
cd gateway && yarn start

Access gateway

You can access the gateway at http://localhost:3000.

Example combined query

query QueryPosts {
  posts {
    id
    title
    user {
      id
      name
    }
  }
}
query userWithPosts($userId: ID!) {
  user(id: $userId) {
    id
    name
    posts {
      authorId
      id
      title
    }
  }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published