async function getPostWithAuthor(postId: string) {
// 記事を取得
const [post, postError] = await nc.query.blog.get(postId);
if (postError) throw postError;
// 著者を取得
const [author, authorError] = await nc.query.authors.get(post.properties.authors[0]);
if (authorError) throw authorError;
return {
...post,
author
};
}