@MichelDiz - It looks like you committed this, would it be on the latest version of the cloud? If not there may be an error somewhere, unless my basic code is off.
The types file needs to be updated, but since typescript compiles to js, not sure if that would be the problem. I tried both with and without the stringify, but again, that is already done inside the function, so it does not change the error.
Are we 100% sure it committed to v21.03.0-78-ge4ad0b113 or earlier?
That is what I meant. How can I check the lambda version? Or even better, how can we get the lambda versions updated to the cloud (I would think this would be done when there is a new version — 21.03 —, but I could see how this would have gotten skipped over…
Ok thanks. It makes no sense why it doesn’t work. It looks like there was no exact test on it. Other than spinning up my own proper server and testing a basic mutation with println, I don’t know how to test it.
Any ideas?
Thanks,
J
I just made a PR for the typing problem. Hopefully that fixes the problem.
A TS type should fix? why? It should work with vanilla JS, not TS.
PS. Looks like that a way to test it is just by running the code with NPM locally running a GraphQL instance. Feels like it is just a NPM server in the docker image, it isn’t a fancy go lang build or something.
I imagine I need to run DGraph Database on a Docker too (which I have never done)? How else would I test it without a database. There is a reason I use DGraph Cloud, I don’t want to mess with server configurations. I have no idea how to configure it. Also I would need to let the database know which port the DGraph lambda server is on?
You can see the lambda server is running, but now what? I can’t get the dgraph database server to even run, as it just exits immediately after I run it.