Help needed to add GraphQL API keys in LangChain script

Found a solution to connect to MongoDB with GraphQL API auth.

  1. Download the LangChain package: GitHub - langchain-ai/langchain: ⚡ Building applications with LLMs through composability ⚡
  2. Edit the load_tools.py file so it can take a “headers” input (apiKey: “xzy”)
  3. pip install the package in your Python script/terminal

1 Like