awslabs / amplify-video

An open source Category Plugin for the AWS Amplify-CLI that makes it easy to deploy live and file based streaming video services and integrate them into your Amplify applications.
https://www.npmjs.com/package/amplify-category-video
Apache License 2.0
269 stars 56 forks source link

Generated GraphQL schema contains @connection #353

Open OskarD opened 2 years ago

OskarD commented 2 years ago

Describe the bug The generated type VodAsset in schema.graphql contains an unsupported annotation: @connection, triggering this error:

Failed compiling GraphQL schema:
Your GraphQL Schema is using "@connection" directive from an older version of the GraphQL Transformer. Visit https://docs.amplify.aws/cli/migration/transformer-migration/ to learn how to migrate your GraphQL schema.

To Reproduce

% amplify add video
? Select from one of the below mentioned services: Video-On-Demand
? Provide a friendly name for your resource to be used as a label for this category in the project: videoOnDemand
? Select a system-provided encoding template, specify an already-created template name:  System Encoding Template With Accelerated Transcoding (Apple HLS @
1080p30)
? Do you want to get notifications on the video processing job? Yes
? Do you want a custom function executed for notifications? Yes
? Is this a production enviroment? No
? Do you want Amplify to create a new GraphQL API to manage your videos? (Beta) Yes
Using jikoo to manage API
? Define your permission schema Admins can only upload videos
? Do you want to override your GraphQL schema? No
? Do you want to edit your newly created model? No
Failed compiling GraphQL schema:
Your GraphQL Schema is using "@connection" directive from an older version of the GraphQL Transformer. Visit https://docs.amplify.aws/cli/migration/transformer-migration/ to learn how to migrate your GraphQL schema.
? Correct the errors in schema.graphql and press Enter to re-compile.

Desktop (please complete the following information):

gvasquez95 commented 1 year ago

I had the same issue here!