mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-10 21:35:08 +00:00
community[patch]: pass bool value for fetch_schema_from_transport in GraphQLAPIWrapper (#17552)
- **Description:** Allow a bool value to be passed to fetch_schema_from_transport since not all GraphQL instances support this feature, such as TigerGraph. - **Threads:** @zacharytoliver --------- Co-authored-by: Bagatur <baskaryan@gmail.com>
This commit is contained in:
parent
789cd5198d
commit
6746adf363
@ -37,7 +37,10 @@ class GraphQLAPIWrapper(BaseModel):
|
|||||||
url=values["graphql_endpoint"],
|
url=values["graphql_endpoint"],
|
||||||
headers=headers,
|
headers=headers,
|
||||||
)
|
)
|
||||||
client = Client(transport=transport, fetch_schema_from_transport=True)
|
fetch_schema_from_transport = values.get("fetch_schema_from_transport", True)
|
||||||
|
client = Client(
|
||||||
|
transport=transport, fetch_schema_from_transport=fetch_schema_from_transport
|
||||||
|
)
|
||||||
values["gql_client"] = client
|
values["gql_client"] = client
|
||||||
values["gql_function"] = gql
|
values["gql_function"] = gql
|
||||||
return values
|
return values
|
||||||
|
Loading…
Reference in New Issue
Block a user