apollographql / apollographql/federation
Quickstart fails with unexpected <EOF> wth graphql schema
- Dominant language
- TypeScript
- Stars
- 725
- Forks
- 276
- Avg merge
- 1h 47m
- Merged PRs (30d)
- 1
Description
Even after generating the supergraph.graphql schema, still getting the above error.
(It's unfortunate there is not any feedback loops on the quickstarts.)
```
const { ApolloServer } = require("apollo-server");
const { ApolloGateway } = require("@apollo/gateway");
const { readFileSync } = require("fs");
const supergraphSdl = readFileSync("./supergraph.graphql").toString();
const gateway = new ApolloGateway({
supergraphSdl,
});
const server = new ApolloServer({
gateway,
});
server
.listen()
.then(({ url }) => {
console.log(`🚀 Gateway ready at ${url}`);
})
.catch((err) => {
console.error(err);
});
Contributor guide
Research direction
Reproduce the quickstart using the shown ApolloGateway entry point and the generated supergraph.graphql file, then inspect where the unexpected EOF is reported. The work is done when the documented quickstart starts successfully with the generated schema and the failure or required setup is clearly addressed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- graphql, javascript
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100