通过命名空间和 ID 检索项目的操作。

interface GetOperation {
    key: string;
    namespace: string[];
}

属性

key: string

命名空间内的唯一标识符。与命名空间一起构成项目的完整路径。

示例

key: "user123"  // For a user profile
key: "doc456" // For a document
namespace: string[]

项目的分层路径。

示例

// Get a user profile
namespace: ["users", "profiles"]