calling a graphql query using axios

I’m trying to wrap the functionality of this graphql api request using axios.

https://docs.microsoft.com/en-us/azure/developer/javascript/how-to/with-web-app/graphql/azure-function-hello-world (This is the reference I used to create the graphql api and it works, I just need to be able to call it from another function that will act as a wrapper function so the client doesn’t have access to the orginal….this would be done with axios).

import { gql } from 'apollo-server-azure-functions';

const typeDefs = gql`
    extend type qkviewInfo {
        product: product
    },

    type product {
        _collection: String!,
        _name: String!,
        _key: String!,
        className: String!,
        qkviewid: Int!,
        id: String!,
        _rid: String!,
        _self: String!,
        _etag: String!,
        _attachments: String!,
        _ts: String!,
    }
`;

const resolvers = {
    qkviewInfo: {
        async product(id: number, _, {dataSources}){
            const PRODUCT: string = "product";
            return dataSources.serviceRepository.getData(id, PRODUCT);
        }
        
    },
    product: {
        //Fields mapped 1:1
    }
};

export { typeDefs, resolvers}; ```