Getting 500 Internal Server Error when doing wixData query for Events/Events collection from a backend function

For the top image, check out this Stack post.
I think you are using chrome and google chrome by default blocks the source map loading. You can check this link for details
https://stackoverflow.com/questions/36051891/esri-failed-to-parse-source-map

As for your code, what are you trying to achieve here as you are limited to what you can do with Wix Events and Code.
https://www.wix.com/corvid/reference/wix-events.html
https://support.wix.com/en/corvid-by-wix/wix-events-with-corvid

https://support.wix.com/en/article/creating-a-custom-events-gallery
https://support.wix.com/en/article/creating-a-custom-event-details-page

Thanks for the first tip. I don’t even know what that was doing.

About the events, I am trying to use the data on the backend, not on the frontend(it works here)
I read the events doc reference and there is no mention of frontend/backend.

i tried to query the Stores collections on the backend with the same code and it works.
Any other wix collections, as mentioned previously, won’t work and return 500 error.

My 2 questions are:

  1. Am I doing it in a correct technical way?
  2. Is Events/Events queryable from the backend?