-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New queries not accesible via client #3035
Comments
Hey,👋 thanks for raising this! I'm going to transfer this over to our API repository for better assistance 🙂 |
Hi @waltermvp 👋 thanks for raising this issue. Can you confirm that the sandbox redeployed successfully after adding your queries and that they appear in the model introspection schema in the amplify_outputs.json file? |
@chrisbonifacio thank you for the quick response. Yes they are there:
|
thank you for the response, @waltermvp i noticed that the screenshot you shared is of the hosted site. for the changes to appear on the hosted site, you need to have pushed any git commits to the deployed branch. can you confirm that your commits have been merged and deployed? |
they are. You can look at the main branch in the repo (it's public). It is what is deployed on the hosted site. I added the console.log for inspection |
i see this in your main branch: https://github.com/waltermvp/AlfajoresNY/blob/main/src/amplify_outputs.json this branch name matches the subdomain of the site in your screenshot. |
ah your right, I can update the amplify-outputs file in git. I believe it gets overridden by amplify CI during deployment anyways. I can update the amplify outputs file with a |
|
makes sense, ive made these two commits :
They should be reflected in the next deployment |
am I missing something? @chrisbonifacio |
i think the issue is that you have two
where you are calling |
Oh my you are absolutely right thank you! I will close this issue, thank you for your time |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Environment information
Describe the bug
I am unable to access queries I created on the backend. I am able to see the first query named "purchase", however I have tried adding two more queries "validate" and "sayHello" they do not show up when I log queries and when I try to call the query as a function I get a undefined error. The query does show up in the amlplify playground but not accessible via the client. I presume I am missing a step, but after reviewing the documentation I cannot see where my implementation is wrong.
Reproduction steps
Code is publicly accessible here: public repo.
Observe the console.log (https://github.com/waltermvp/AlfajoresNY/blob/main/src/app/onboarding.tsx#L41)
only contains the purchase function on this deployment https://main.dqfinb0wqqis3.amplifyapp.com/onboarding/. When there should be two more queries available.
The text was updated successfully, but these errors were encountered: