Validate @defer
directive in schema matches GraphQL spec definition
#3287
Labels
codegen
Issues related to or arising from code generation
Milestone
This is in reference to an interesting bug reported on Discord - https://discord.com/channels/1022972389463687228/1174776645358465114/1174776645358465114.
tl;dr - AppSync appears to support a version of
@defer
and it's in schemas downloaded from AppSync. Our JS frontend manually adds the@defer
directive to schemas so it can be used in operations. The directive from AppSync differs in that it allows it to be used onFIELD
locations only.The work here is to make sure that we're not adding a duplicate directive which would cause schema validation to fail. We also need to make sure that if one exists it's on the same locations and supports the same arguments otherwise we should fail our validation.
The text was updated successfully, but these errors were encountered: