diff --git a/swh/graphql/resolvers/directory_entry.py b/swh/graphql/resolvers/directory_entry.py --- a/swh/graphql/resolvers/directory_entry.py +++ b/swh/graphql/resolvers/directory_entry.py @@ -30,7 +30,7 @@ # STORAGE-TODO, archive is returning a dict # return DirectoryEntry object instead return self.archive.get_directory_entry_by_path( - directory_id=self.kwargs.get("swhid").object_id, + directory_id=self.kwargs.get("directorySwhid").object_id, path=self.kwargs.get("path"), ) diff --git a/swh/graphql/schema/schema.graphql b/swh/graphql/schema/schema.graphql --- a/swh/graphql/schema/schema.graphql +++ b/swh/graphql/schema/schema.graphql @@ -1017,7 +1017,7 @@ """ SWHID of the directory object """ - swhid: SWHID! + directorySwhid: SWHID! """ Relative path to the requested object diff --git a/swh/graphql/tests/functional/test_directory_entry.py b/swh/graphql/tests/functional/test_directory_entry.py --- a/swh/graphql/tests/functional/test_directory_entry.py +++ b/swh/graphql/tests/functional/test_directory_entry.py @@ -17,7 +17,7 @@ path = "missing" query_str = """ { - directoryEntry(swhid: "%s", path: "%s") { + directoryEntry(directorySwhid: "%s", path: "%s") { name { text } @@ -43,7 +43,7 @@ storage = server.get_storage() query_str = """ { - directoryEntry(swhid: "%s", path: "%s") { + directoryEntry(directorySwhid: "%s", path: "%s") { name { text }