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
{{ message }}
This repository has been archived by the owner on Sep 30, 2019. It is now read-only.
I am wanting to compare strings and am unable to. Note that I am using serverless-appsync-offline but evidently it's just wrapping appsync-emulator-serverless.
Consider this example:
#set($foo = "a")
#set($bar = "a")
#if($foo == $bar) // Not the same
#if($foo == $bar.toString()) // The same
#if($foo.toString() == $bar) // The same
If I cast a single one then it matches?
I tried using the current version of velocityjs which appears to be the rendering engine and it works fine. Also someone tried it live on AWS and it works - just not when running locally.
Thanks for reporting this! I will see if this is something we can fix quickly. I will note we will have an exciting announcement coming soon that should help this issue.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am wanting to compare strings and am unable to. Note that I am using serverless-appsync-offline but evidently it's just wrapping appsync-emulator-serverless.
Consider this example:
If I cast a single one then it matches?
I tried using the current version of velocityjs which appears to be the rendering engine and it works fine. Also someone tried it live on AWS and it works - just not when running locally.
My setup:
My template:
I am loading this using
SLS_DEBUG=* NODE_DEBUG=appsync-* yarn sls appsync-offline start
and testing with graphiQLThe text was updated successfully, but these errors were encountered: