MCPcopy Create free account
hub / github.com/dagger/dagger / get_schema

Method get_schema

sdk/python/src/dagger/client/_session.py:138–143  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

136 return await self.start()
137
138 async def get_schema(self) -> graphql.GraphQLSchema:
139 client = (await self.get_session()).client
140 if not client.schema:
141 msg = "No schema in session"
142 raise ClientConnectionError(msg)
143 return client.schema
144
145 async def execute(self, query: gql.GraphQLRequest) -> Any:
146 return await (await self.get_session()).execute(query)

Callers 1

buildMethod · 0.80

Calls 2

get_sessionMethod · 0.95

Tested by

no test coverage detected