Skip to content

augustoscher/document-graphql

Repository files navigation

document-graphql

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.

Requirements

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

Running

To run application, just type:

yarn dev

or in docker:

make dev

Products GraphQL subgraph will be running on localhost:4002/graphql

Example

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
  }
}

About

Document Domain Graph Service. It's part of Jus Edge GraphQL.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published