wunderbase icon indicating copy to clipboard operation
wunderbase copied to clipboard

graphql operation with parameter doesn't work

Open AnsonCode opened this issue 3 years ago • 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

AnsonCode avatar Sep 16 '22 07:09 AnsonCode

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

jensneuse avatar Sep 16 '22 07:09 jensneuse

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

AnsonCode avatar Sep 16 '22 09:09 AnsonCode

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.

AnsonCode avatar Sep 16 '22 11:09 AnsonCode

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.

jensneuse avatar Sep 17 '22 20:09 jensneuse