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
- Add 'schema_hash' parameter to client.schema.all to only optionally refresh the schema if the provided hash differs from what the client has already cached. ([#152](https://github.com/opsmill/infrahub-sdk-python/issues/152))
31
+
32
+
### Changed
33
+
34
+
- CoreStandardGroups created or updated by a generator in Infrahub are now stored as a member of the CoreGeneratorGroup. Previously they were being stored as children of the CoreGeneratorGroup.
35
+
36
+
### Fixed
37
+
38
+
- The SDK client query methods (get, filters, all) default behaviour has changed. The query methods will store the retrieved nodes in the internal store by default, where previously this behaviour had to be enabled explicitly using the `populate_store` argument. ([#15](https://github.com/opsmill/infrahub-sdk-python/issues/15))
- Timestamp: Direct access to `obj` and `add_delta` have been deprecated and will be removed in a future version. ([#255](https://github.com/opsmill/infrahub-sdk-python/issues/255))
45
+
46
+
### Added
47
+
48
+
- Added support for Enum in GraphQL query and mutation. ([#18](https://github.com/opsmill/infrahub-sdk-python/issues/18))
49
+
50
+
### Fixed
51
+
52
+
- Refactored Timestamp to use `whenever` instead of `pendulum` and extend Timestamp with `add()`, `subtract()`, and `to_datetime()`. ([#255](https://github.com/opsmill/infrahub-sdk-python/issues/255))
53
+
- Fixed support for Python 3.13 as it's no longer required to have Rust installed on the system.
- Fix typing for Python 3.9 ([#251](https://github.com/opsmill/infrahub-sdk-python/issues/251))
71
+
- Refactor Timestamp to use `whenever` instead of `pendulum` and extend Timestamp with add(), subtract(), and to_datetime(). ([#255](https://github.com/opsmill/infrahub-sdk-python/issues/255))
72
+
- Remove default value "main" for branch parameter from all Infrahub CTL commands. ([#264](https://github.com/opsmill/infrahub-sdk-python/issues/264))
73
+
- Fixed support for Python 3.13, it's no longer required to have Rust installed on the system.
74
+
75
+
### Housekeeping
76
+
77
+
- Move the function `read_file` from the ctl module to the SDK.
29
78
- Fixed typing for Python 3.9 and removed support for Python 3.13. ([#251](https://github.com/opsmill/infrahub-sdk-python/issues/251))
30
79
- Removed default value "main" for branch parameter from all Infrahub CTL commands. ([#264](https://github.com/opsmill/infrahub-sdk-python/issues/264))
Copy file name to clipboardExpand all lines: docs/docs/python-sdk/guides/query_data.mdx
+3-23Lines changed: 3 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,26 +19,7 @@ The `get` and `filters` query methods allow you to use filters. Filters specify
19
19
20
20
### Discovering available filters
21
21
22
-
The easiest way to discover the available filters for a kind of node is by querying the schema.
23
-
24
-
<TabsgroupId="async-sync">
25
-
<TabItemvalue="Async"default>
26
-
27
-
```python
28
-
tag_schema =await client.schema.get("BuiltinTag")
29
-
print(tag_schema.filters)
30
-
```
31
-
32
-
</TabItem>
33
-
<TabItemvalue="Sync">
34
-
35
-
```python
36
-
tag_schema = client.schema.get("BuiltinTag")
37
-
print(tag_schema.filters)
38
-
```
39
-
40
-
</TabItem>
41
-
</Tabs>
22
+
The easiest way to discover the available filters for a kind of node is by opening the GraphQLi Explorer in the GraphQL sandbox. Under each GraphQL query you will find the available filters.
42
23
43
24
### Attribute filters
44
25
@@ -435,7 +416,8 @@ You can exclude attributes and relationships that are retrieved with a query by
435
416
436
417
### Fetching relationships manually
437
418
438
-
The `fetch` method can be used to retrieve relationships that are not retrieved as part of a query. The `fetch` method will initialized the relationship, if was not yet initialized and retrieve the related nodes.
419
+
The `fetch` method can be used to retrieve relationships, initialize them; and retrieving the related nodes manually.
420
+
The `fetch` method can also be used on relationship that were previously initialized.
439
421
440
422
<TabsgroupId="async-sync">
441
423
<TabItemvalue="Async"default>
@@ -466,8 +448,6 @@ The `fetch` method can be used to retrieve relationships that are not retrieved
466
448
</TabItem>
467
449
</Tabs>
468
450
469
-
The `fetch` method can also be used to `fetch` the related nodes of a relationship that was already initialized or retrieved as part of the query.
0 commit comments