You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to perform dynamic queries as in the documented example here: https://gql.readthedocs.io/en/v3.0.0a5/advanced/dsl_module.html#sync-example. When I try to instantiate the gql.Client() with fetch_schema_from_transport=True, the schema attribute is not populated for v3.0.0a5. Attempting this same action with v2.0.0, the schema is return successfully. Here's the neutered version of the code I'm attempting to run:
from gql import Client, gql
from gql.transport.requests import RequestsHTTPTransport
from gql.dsl import DSLSchema
transport = RequestsHTTPTransport(url=<url>,headers={"Content-Type":"application/json","Authorization":"Bearer <token>"},verify=False)
client = Client(transport=transport,fetch_schema_from_transport=True)
client.schema
The text was updated successfully, but these errors were encountered:
Ha. Ya know, probably should have gotten that from the documentation I didn't read thoroughly or from the commit message or the release notes. Just verified, pulling schema correctly. Sorry for the false alarm. 2.0 -> 3.0 breaking change would certainly be helpful, but my inattention to detail was the only issue in this case. :)
Trying to perform dynamic queries as in the documented example here: https://gql.readthedocs.io/en/v3.0.0a5/advanced/dsl_module.html#sync-example. When I try to instantiate the gql.Client() with fetch_schema_from_transport=True, the schema attribute is not populated for v3.0.0a5. Attempting this same action with v2.0.0, the schema is return successfully. Here's the neutered version of the code I'm attempting to run:
The text was updated successfully, but these errors were encountered: