I am currently working on the Spring Boot with Netflix DGS for Apollo Federated system. I am encountering issue logs like this, which I have mentioned below. Can someone clearly explain what this error means and how to fix it? I am actually new to this.
Hey, I ran into this exact issue when I first started with DGS + Apollo Federation — it’s actually pretty common when federation isn’t fully wired up.
Those logs basically mean that the federation-specific fields (_service and _entities) are being generated, but DGS can’t properly map them to your schema/data fetchers. In most cases, it comes down to one of these:
Federation not fully enabled/configured
Make sure you’ve added the proper DGS federation dependency and that your schema includes federation directives like @key.
Missing or incorrect entity fetcher
The _entities field is tied to entity resolution. You need a method annotated with @DgsEntityFetcher for your federated types (e.g., Product). If that’s missing or mismatched, you’ll see logs like this.
Schema mismatch
Double-check that your schema definitions match your Java/Kotlin classes exactly (type names, fields, etc.).
Version mismatch
Sometimes this happens if your Spring Boot, DGS, and GraphQL dependencies aren’t aligned properly.
In my case, the fix was simply adding the correct @DgsEntityFetcher and making sure the type name matched the schema exactly.
If you’re still stuck, I’d recommend walking through a clean federation example and comparing setup step-by-step. I found namezor useful for quickly checking naming consistency across schema and code — small mismatches there can trigger weird issues like this.