Coder Social home page Coder Social logo

graphql-federation-demo's Introduction

What’s This?

Demo for the SmallRye GraphQL extension library to add GraphQL Federation.

There’s also an experiment for a Quarkus extension.

Howto Run The Demo

Backend Services: Java

The film and review services build a war that can run on a JEE server (tested with WildFly 23.0.1), either when the GraphQL feature pack is installed, or when built with the fat profile, so it includes the SmallRye GraphQL dependencies.

Note
The feature-pack currently contains a version of SmallRye GraphQL that has a bug that turns the _Any type into _AnyInput. So you’ll have to use the fat deployment for now.

It contains the federation classes and a demo app delivering reviews for the films.

Gateway Service: Node

The federating gateway is a node service. Start it with the start-gateway commands defined in the package.json

Testing

Open the gateway playground at http://localhost:4000

An example query is:

{
  films {
    id
    title
    year
    reviews {
      score
      comments
    }
  }
}

GraphQL Tools

https://gqless.com Client Generator

https://graphql-hive.com Schema Registry + API Gateway

https://www.prisma.io expose PostgreSQL, etc. as GraphQL similar: mesh

graphql-federation-demo's People

Contributors

t1 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.