amazon-web-servicesgraphqlaws-appsync

AWS AppSync - Defining GraphQL schema with custom directives


While defining this custom directive:

directive @hashField on INPUT_FIELD_DEFINITION

I get this error on the AWS AppSync (Schema tab):

Error parsing schema. Directive definitions are not supported.

I understand AWS provides functions that can provide similar functionalities, but these functions won't work for my use case.

What's the alternative for custom directives in AWS AppSync? Is it going to be supported in a future release?


Solution

  • Looks like they don't have plans to support Directives anytime soon.

    An alternative could be custom scalar types; however, it doesn't meet my requirements since I need to specify order of multiple directives applied to a particular field.