GraphQL API > Function (add data from 3rd party API to collection)

Hello… newbie here and super excited about MongoDB, a whole world of opportunities opened up… :slight_smile:

I hope you guys can help me out as I am struggling to do the following.

With GraphQL API and the Function (Fucntion Editor) did I understand how to call data from 3rd party API to add to my endpoint. The endpoint already has data from my MongoDB collection. What I aim to achieve is to have the data from the 3rd party API to be added to my collection so I can define “relationships” and do other things with the 3rd party API data in my MongoDB. How would I go about doing that?

Thanks a lot for your help.