Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

graphql operation with parameter doesn't work #1

Open
AnsonCode opened this issue Sep 16, 2022 · 4 comments
Open

graphql operation with parameter doesn't work #1

AnsonCode opened this issue Sep 16, 2022 · 4 comments

Comments

@AnsonCode
Copy link
Contributor

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

@jensneuse
Copy link
Member

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

@AnsonCode
Copy link
Contributor Author

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

@AnsonCode
Copy link
Contributor Author

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.

@jensneuse
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants