99designs / 99designs/gqlgen

Federation example not working out-of-the-box

Aperta
#2,117 1 commento 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
Go
Stelle
10.8k
Fork
1.3k
Merge medio
2g 36m
PR unite (30g)
26

Descrizione

### What happened?
I cloned the gqlgen repo and tried the federation example. I get an error with the federation example after starting up the services and also the federation gateway:
![image](https://user-images.githubusercontent.com/6827052/164938222-1bbb0cc2-1ee3-49e0-85cd-751af4719b03.png)

### What did you expect?
I expected the example to work, I didn't change any code and was just following the tutorial here: https://gqlgen.com/recipes/federation/

### Minimal graphql.schema and models to reproduce
The ```./accounts/schema.graphqls``` file seems to be missing the reviews field? I'm not sure yet if this is the issue:

```
extend type Query {
me: User
}

type EmailHost @key(fields: "id") {
id: String!
name: String!
}

type User @key(fields: "id") {
id: ID!
host: EmailHost!
email: String!
username: String!
}
```

### versions
- `go run github.com/99designs/gqlgen version`? 0.16.0
- `go version`? go1.18 linux/amd64

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.