'Why does the Amplify throws this error of "InvalidDirectiveError: User and Video cannot refer to each other via

Alright.

Keeping this short and simple for you.

You got three different models:

  1. User

  2. Video

  3. Comment

And this is how they hold values:

User:

enter image description here

Video

enter image description here

Comment

enter image description here

Only an authenticated user from Cognito pools can do all create, update, read and delete. Other have to settle only with create and read.

Deploying this models ends up with this strange error.

enter image description here

Do you know why this newbie is facing with this issue? Any help in any shape or form would be greatly appreciated!

Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source