Replies: 1 comment 5 replies
-
fields for simple objects can't have resolvers. The primary purpose for simple objects is to infer the data requirements for the object type from the fields. If your data is being provided from the parent field you don't need const Page = builder.prismaObject({...})
export const ListPayload = builder.simpleObject('ListPayload', {
description: '',
fields: (t) => ({
total: t.int(),
list: t.field({
type: [Page],
nullable: true,
})
})
}) |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone I ask for help to solve this problem with prisma if its prismaField does not work
if I import prismaObject with field yes why?
this is not working before it worked in previous version
this works
Beta Was this translation helpful? Give feedback.
All reactions