[plugin-prisma] PrismaObject for MongoDB embedded documents #672
Unanswered
vraptor75011
asked this question in
Q&A
Replies: 1 comment
-
You currently need to define an object type for your embeded types. Because you can't query for them directly, you can't use the prismaObject API for these types. See https://pothos-graphql.dev/docs/guide/objects for defining normal object types, which you should be able to use here. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Trying to build a schema with prisma plugin for a MongoDB model with embedded documents.
I can't find a way to describe the embedded docs in the builder.
Is it possible ?
prisma schema :
builder : here at the blockchainWallets field i can't find a way to get the BlockchainWallet List type
Beta Was this translation helpful? Give feedback.
All reactions