Best practices on handling images?

Although I haven’t worked on this feature yet in my project.

I have a general idea of what I’m going to do.

I will use Firebase Object store and then either:

  1. Get the link in UI & set the link along with other data to Dgraph. (Auth from front end)
  2. Or using Firebase function update link separately in Dgraph. (Auth from backend)

P.S. I don’t know if I can call external service from inside Firebase function or which approach is faster. (Maybe first is the best one!)