Frontend use of faunadb

Is it okay to use fauna in the frontend to ask for queries? If so, is it okay to expose the secret key in the html as this url says (JavaScript driver | Fauna Documentation) and finally how can I secure my queries in I use it in the frontend?

Preferably your secret key would be stored on a server and accessed by your website for authorization. The option I’m using is storing it in my host Environment settings (Netlify) and authorizing using environment variables on my app.

If you stored private data in FaunaDB, having your keys available in the front-end is probably a bad idea…