Closed QuintonC closed 4 years ago
I managed to fix the issue.
I went with the simpler approach and pass the gql query via params to the function.
The main issue was that when loading the app I was authenticating anonymously to load some basic app data. I was not logging out that anonymous user, which was the problem.
I've tried to make this a more modular approach so we can control what is passed in. That way we just need one for updating many, getting many, etc. This is for a large application and I've been trying to figure out the issue.
In my Log in Stitch I see 200 requests. I've tried it a few different ways and continue to get a 200 status (OK), but receive nothing as a response. Additionally, the collection is not updating. Any help would be great.
Here is my implementation of performing updates.
Example call:
Here are some log results:
I tried another approach to making the call, which looked like this (and as a result you see the top log entry).
EDIT: Forgot to include information that was being logged to the console. using the last method included: