New to GraphQL/8base questions on QLClient & Logic

I’m new to graphql and 8base.

  1. I’ve used Axios to consume REST api’s in the past. Is this something I can still do or do i have to use a graphQLClient? Thanks
  2. I’m more familiar with backend code like php. Is it safe(secure) to have logic in the front end? Example: I connect to the square api to process payments or perform calculations on a price/discount,etc… before insert them into database.

Thanks in advance.

Hey @ralanyo the secure logic happens via serverless functions https://docs.8base.com/docs/8base-console/custom-functions

You can mutate and add data in the database from your frontend through a trigger.

Or process transactions with webhooks https://docs.8base.com/docs/8base-console/custom-functions/webhooks/

1 Like