Document Domain Graph Service (DGS) corresponding to the products domain from Supergraph. It's builded with Apollo Federation v2 which is an open source architecture for building a distributed graph.
It's possible to run application inside docker. But also, it's possible to run in your local machine. In this case, make sure that following apps are installed:
- Node v16
- MongoDB
To run application, just type:
yarn dev
or in docker:
make dev
Products GraphQL subgraph will be running on localhost:4002/graphql
This query fetch data from mongodb in document-graphql:
query DocumentsQuery {
documents {
id
documentId
title
artifact
body
# available only in documents subgraph
meritDecision
mandatoryPrecedent
readingTime
}
}