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

Method select_id

sdk/python/src/dagger/client/_core.py:149–160  ·  view source on GitHub ↗

Load an object by its ID via node(id:) with an inline fragment.

(self, type_name: str, id_value: str)

Source from the content-addressed store, hash-verified

147 return ctx.select("Query", field_name, args)
148
149 def select_id(self, type_name: str, id_value: str) -> "Context":
150 """Load an object by its ID via node(id:) with an inline fragment."""
151 ctx = dataclasses.replace(self, selections=collections.deque())
152 node_field = Field(
153 type_name="Query",
154 name="node",
155 args={"id": id_value},
156 inline_type=type_name,
157 )
158 selections = ctx.selections.copy()
159 selections.append(node_field)
160 return dataclasses.replace(ctx, selections=selections)
161
162 async def build(self) -> DSLSelectable:
163 if not self.selections:

Callers 3

execute_syncMethod · 0.95
execute_object_listMethod · 0.80
dagger_type_structureFunction · 0.80

Calls 4

replaceMethod · 0.80
FieldClass · 0.70
copyMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected