ErrorType and ErrorDetail enums in single unified graph #216
-
Hi, First of all, thank you for contributing the DGS framework to the open source community. It has truly made Java GraphQL service development much easier than before. It's also great to see it is a very active and well supported project from the beginning. We are in the process of building a single unified graph for our company (One Graph) using the Apollo platform and federation. As we're still going through the process of adding more services to it, we've realized that DGS is adding From the Netflix blog posts I know that federation is also being used internally with a single graph. What are the recommendations to deal with this potential issue? I haven't found a way to disable the custom error handling ( Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Correct, Netflix is using the federation spec as well - we have an in-house built gateway and tooling, but the the specification is the same as Apollo (we collaborate with them on the spec as well). We have a schema registry where all the individual schemas for DGSs are registered. The registration of a schema is a separate step in our deployment process. The tool we use to register schemas takes the schema for a DGS for registration, but does not register any schemas brought in by libraries, such as the error types. The error types (and we have some other common types) are registered separately. Updating such types requires coordination, to make sure the existing DGSs are still compatible with the updates. In practice this means you really only ever want to do backwards compatible changes on these types. |
Beta Was this translation helpful? Give feedback.
Correct, Netflix is using the federation spec as well - we have an in-house built gateway and tooling, but the the specification is the same as Apollo (we collaborate with them on the spec as well).
We have a schema registry where all the individual schemas for DGSs are registered. The registration of a schema is a separate step in our deployment process. The tool we use to register schemas takes the schema for a DGS for registration, but does not register any schemas brought in by libraries, such as the error types.
The error types (and we have some other common types) are registered separately. Updating such types requires coordination, to make sure the existing DGSs are still compatibl…