Skip to content

Commit

Permalink
Update apply_dml example (#1373)
Browse files Browse the repository at this point in the history
Co-authored-by: Murad Sæter <[email protected]>
  • Loading branch information
cognite-fholm and muradsater authored Sep 20, 2023
1 parent 66ad0b0 commit 2046b0b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cognite/client/_api/data_modeling/graphql.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ def apply_dml(
>>> from cognite.client import CogniteClient
>>> c = CogniteClient()
>>> res = c.data_modeling.graphql.apply_dml(
... ("mySpace", "myDataModel", "1"),
... dml="type MyType { id: String! }"
... id=("mySpaceExternalId", "myModelExternalId", "1"),
... dml="type MyType { id: String! }",
... name="My model name",
... description="My model description"
... )
"""
graphql_body = """
Expand Down

0 comments on commit 2046b0b

Please sign in to comment.