You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Today @key doesn't allow you to reference non-mandatory fields. This can hinder other transforms and custom revolvers that might take a null field and fill in a default if no value is given.
This example, fails to compile today but should compile as the resolver will auto fill the owner field in if no value is provide due to the auth resolver.
Expected behavior
I expect a flag to be able to set in the @key transform that will allow me to disable the required non-nullable check. Or this should not stop the compile and should throw a warning letting me know that there could be possible issues down the road but will allow me to still push.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
OS: Mac
Node Version: v12.13.1
The text was updated successfully, but these errors were encountered:
Describe the bug
Today @key doesn't allow you to reference non-mandatory fields. This can hinder other transforms and custom revolvers that might take a null field and fill in a default if no value is given.
Amplify CLI Version
4.16.1
To Reproduce
An example:
This example, fails to compile today but should compile as the resolver will auto fill the owner field in if no value is provide due to the auth resolver.
Expected behavior
I expect a flag to be able to set in the @key transform that will allow me to disable the required non-nullable check. Or this should not stop the compile and should throw a warning letting me know that there could be possible issues down the road but will allow me to still push.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: