I’m trying do develope a VUE JS app, and would like to use DGraph for my data. In earlier projects I used NEO4J and Express/Apollo for communication between my client and the NEO4J database.
I tried to use the dgraph-js/grpc library directly in VUE, but get errors indicating that my code doing DGraph stuff should run in another environment (not the web-browser).
I suspect that I have to establish a nodejs server component using e.g. Express, and then have my client communicate with the Express server, and then have the Express server communicate with the DGraph server.
Is there any best practices on how to develop a SPA using Vue, Angular, React etc. and DGraph as datastore.
I’m considering to use the express server as a route, accepting my graphql+ queries and just push them forward to the DGraph server, and the same with the response… Is there any reason for why I should avoid such an approach?
If there is an example available on github, that could point me in the correct direction that would be most appreciated.
Any guidance on how to best communicate between a SPA client and a DGraph server is most welcome.
If this request should have been posted in a different forum or thread, please accept my apologies…