© 2026 Hedgehog Software, LLC
export const articlePreparedQueryNodePg = dbNodePg .select() .from(article) .where( sql`(${placeholder("author")} IS NULL OR ${ article.authorName } = ${placeholder("author")})` ) .limit(placeholder("limit")) .offset(placeholder("offset")) .prepare("article_prepared");
const articlesWithAuthor = await articlePreparedQueryNodePg.execute({ author: "John Doe", limit: 10, offset: 0, }); //or const allArticles = await articlePreparedQueryNodePg.execute({ author: null, limit: 10, offset: 0, });
error: 'could not determine data type of parameter $1'