T
TanStack3y ago
exotic-emerald

Should i fetch my own database from the clientside? or is that dangerous? (im using pocketbase)

title i'm using a next app, so i dont really know when im supposed to fetch data using react-query
2 Replies
modern-teal
modern-teal3y ago
You can’t interface with databases directly from the client as far as I’m aware, and even if you could you almost certainly shouldn’t. BaaS (backend as a service) services like Firebase (and I think Pocketbase) make calls to a server from the client that interfaces with the database so you should be safe to use any functions they expose to interact with the backend
exotic-emerald
exotic-emeraldOP3y ago
i see, thank you!

Did you find this page helpful?