Skip to content

Commit 3724fd7

Browse files
committed
fix dataset query in sdk
1 parent b912828 commit 3724fd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dataspace_sdk/resources/datasets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def get_prompt_by_id(self, dataset_id: str) -> Dict[str, Any]:
293293
"""
294294
query = """
295295
query GetPromptDataset($id: UUID!) {
296-
dataset(id: $id) {
296+
get_dataset(id: $id) {
297297
id
298298
title
299299
description
@@ -352,7 +352,7 @@ def get_prompt_by_id(self, dataset_id: str) -> Dict[str, Any]:
352352

353353
raise DataSpaceAPIError(f"GraphQL error: {response['errors']}")
354354

355-
result: Dict[str, Any] = response.get("data", {}).get("dataset", {})
355+
result: Dict[str, Any] = response.get("data", {}).get("get_dataset", {})
356356
return result
357357

358358
def list_prompts(

0 commit comments

Comments
 (0)