wundergraph/wunderbase

graphql operation with parameter doesn't work

AnsonCode opened this issue · 4 comments

when i use graphql operation with parameter,it doesn't work,like this:

image

but if don't use paramter,it works,like this:

image

That's correct! Prisma doesn't support variable definitions.
That's why we've built something into WunderGraph to "inline" variable definitions.

Yes, I'v submit an issue here,but be refused.

That's correct! Prisma doesn't support variable definitions. That's why we've built something into WunderGraph to "inline" variable definitions.

I think we should migrate this function for wunderbase.

As we're only always using wunderbase behind WunderGraph, I don't see much value in doing so. It's fast, but not inexpensive, and shouldn't run twice in the request chain.