scana
12/16/2025, 1:18 PM@nonnull fields.
I know that I can apply e.g. extend type MyNode @semanticNonNullField(name: "id") next to where my fragment/query is located (+ @catch on the field) (EDIT: can I really? 🤔)
This however results in Unknown directive '@catch' error which gets resolved if I artificially apply it to my schema file:
extend schema @link(
url: "<https://specs.apollo.dev/nullability/v0.4>",
import: ["@semanticNonNull", "@semanticNonNullField", "@catch", "CatchTo", "@catchByDefault"]
)
extend schema @catchByDefault(to: THROW)
Can I somehow extend the original schema with a separate file? Putting it within the aforementioned fragment does not workscana
12/16/2025, 1:24 PM*.graphqls file and put extensions over therembonnin
12/16/2025, 1:24 PMscana
12/16/2025, 1:24 PMmbonnin
12/16/2025, 1:25 PM@semanticNonNull describes your data => belongs to the schema
• @catch describes your error handling => belongs to the querymbonnin
12/16/2025, 1:26 PMscana
12/16/2025, 1:27 PMmbonnin
12/16/2025, 1:27 PMmbonnin
12/16/2025, 1:28 PM