한번 pothos-drizzle을 도입해보고 있는데요... drizzleNode로 오브젝트를 정의하면 node 쿼리 결과를 무조건 플러그인에게 맡겨야 하나요...? where를 추가로 건다거나 특정 노드는 필터링한다거나 그런 방법은 (그냥 node로 정의하기 빼고) 없나요...?
@robin
select.where
옵션이 있을 걸요?
If you have a fediverse account, you can reply to this note from your own instance. Search https://hackers.pub/ap/notes/0198e454-522e-7e42-8f14-59eaa81c74d5 on your instance and reply to it.
@robin 저는 이런 식으로 쓰고 있어요.
export const Account = builder.drizzleNode("accountTable", {
name: "Account",
id: {
column: (account) => account.id,
},
select: {
where: {
usernameChanged: { isNull: true }
}
},
fields: (t) => ({
// ...
}),
});