Extracting data from API and inserting into Graphql Server

My purpose is to receive data through Rest API in Node-red using the http request Node. And extracting the useful information from the API response and insert it into GraphQL server. I am not sure how to extract the relevant data from API and use it in graphql mutation. Should I use a function node in between or how can it be done ?