You are working on the opsmill/infrahub-sdk-python repository. The source code is checked out at /testbed at…
You are working on the opsmill/infrahub-sdk-python repository. The source code is checked out at /testbed at…: a task in SWE-Lego-RL-2699 (Harbor dataset). In scenarios where I would need to count the amount of objects that match a query, I have 2 options today: - retrieve the objects and take the…
The task
In scenarios where I would need to count the amount of objects that match a query, I have 2 options today: - retrieve the objects and take the length of the resulting list, which could be expensive, because we would automatically fetch attributes and relationships of cardinality one - construct a raw GraphQL query
Part of Lego-X/Lego-RL-2699.