graphql-federation-demo's People
graphql-federation-demo's Issues
How to run it with quarkus?
- Run quarkusDev in the film service
- Change this lines in gateway/index.tsx
{ name: 'film', url: 'http://localhost:8083/graphql' }, // { name: 'review', url: 'http://localhost:8080/review/graphql' }, // { name: 'artist', url: 'http://localhost:8082/graphql' },
- Run gateway
Result
Error checking for changes to service definitions: Couldn't load service definitions for "film" at http://localhost:8083/graphql: Validation error of type FieldUndefined: Field '_service' in type 'Query' is undefined @ '_service'
This looks like the film service didn't support federation. So, is it possible to make it works with quarkus?
Fail to run the `demo-file-quarkus` project
When running mvn compile quarkus:dev
get the following dependencies error:
[INFO] Scanning for projects...
[INFO]
[INFO] ---------< com.github.t1.graphql-federation:demo-film-quarkus >---------
[INFO] Building demo-film-quarkus 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.github.t1.graphql-federation</groupId>
<artifactId>root</artifactId>
<version>1.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>demo-parent</artifactId>
<packaging>pom</packaging>
<modules>
<module>film-war</module>
<module>film-quarkus</module>
<module>review</module>
<module>artist-war</module>
<module>artist-quarkus</module>
</modules>
<properties>
<failOnMissingWebXml>false</failOnMissingWebXml>
</properties>
<profiles>
[WARNING] The POM for io.smallrye:smallrye-graphql-federation-api:jar:1.2.3-SNAPSHOT is missing, no dependency information available
<packaging>pom</packaging>
[WARNING] The POM for com.github.t1.graphql-federation:quarkus-extension:jar:1.0-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for io.smallrye:smallrye-graphql:jar:1.2.3-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for io.smallrye:smallrye-graphql-client:jar:1.2.3-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for io.smallrye:smallrye-graphql-servlet:jar:1.2.3-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.230 s
[INFO] Finished at: 2021-08-03T22:27:51+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project demo-film-quarkus: Could not resolve dependencies for project com.github.t1.graphql-federation:demo-film-quarkus:jar:1.0-SNAPSHOT: The following artifacts could not be resolved: io.smallrye:smallrye-graphql-federation-api:jar:1.2.3-SNAPSHOT, com.github.t1.graphql-federation:quarkus-extension:jar:1.0-SNAPSHOT, io.smallrye:smallrye-graphql:jar:1.2.3-SNAPSHOT, io.smallrye:smallrye-graphql-client:jar:1.2.3-SNAPSHOT, io.smallrye:smallrye-graphql-servlet:jar:1.2.3-SNAPSHOT: Could not find artifact io.smallrye:smallrye-graphql-federation-api:jar:1.2.3-SNAPSHOT -> [Help 1]
It seems that upgrading smallrye-graphql
version to 1.3.0 solves the issue - I opened the #3 PR for that
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.