From 2046b0beefc4fda3b8ac8fc41ab1de34baa790d8 Mon Sep 17 00:00:00 2001 From: cognite-fholm <42369980+cognite-fholm@users.noreply.github.com> Date: Wed, 20 Sep 2023 08:59:10 +0200 Subject: [PATCH] Update apply_dml example (#1373) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Murad Sæter <51971968+muradsater@users.noreply.github.com> --- cognite/client/_api/data_modeling/graphql.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cognite/client/_api/data_modeling/graphql.py b/cognite/client/_api/data_modeling/graphql.py index 8d04444a5..3f2c9a0e1 100644 --- a/cognite/client/_api/data_modeling/graphql.py +++ b/cognite/client/_api/data_modeling/graphql.py @@ -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 = """