sid88in / serverless-appsync-plugin

serverless plugin for appsync
MIT License
950 stars 186 forks source link

fix: schema directives validation #623

Open danielfttorres opened 10 months ago

danielfttorres commented 10 months ago

As a see below, the @canonical directive can be used to annotate that a specific field are canonical and can be reused by an associated API.

Screenshot 2023-11-26 at 16 37 57

But when try to use @canonical directive, according to the AppSync Merged API's spec, results on:

Invalid GraphQL schema:
     Unknown directive "@canonical".

This PR fix this by adding the support for the @canonical directive.

bboure commented 7 months ago

Thank you @danielfttorres We should also add the other directives (@hidden, @renamed, etc).

danielfttorres commented 7 months ago

Added the @hidden and @renamed directives @bboure.