-
Hi,
How can I make the field
Right now, the approach I have is to use |
Beta Was this translation helpful? Give feedback.
Answered by
hayes
Aug 30, 2023
Replies: 1 comment
-
I think something like this should work for you builder.prismaObject("Project", {
select: { id: true },
fields: (t) => ({
tasks: t.relation("tasks", {
args: paginationArgs,
query: (args) => ({
skip: args.pageSize * (args.page - 1),
take: args.pageSize,
}),
}),
}),
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
khuongtp
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think something like this should work for you