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

Mutation not working when using @graphql-yoga/plugin-sofa for Restful API #2662

Open
Tracked by #2700 ...
lukadriel7 opened this issue Apr 8, 2023 · 1 comment
Labels

Comments

@lukadriel7
Copy link

lukadriel7 commented Apr 8, 2023

Describe the bug

I am using the @graphql-yoga/plugin-sofa package to create a restful api with the @graphql-yoga/nestjs package in a nestjs graphql application. Unfortunately, mutations don't seem to work as I get as error that the arguments haven't been provided.

Your Example Website or App

https://codesandbox.io/p/sandbox/empty-waterfall-69y9pr

Steps to Reproduce the Bug or Issue

  1. Open the codesandbox reporoduction link
  2. go to /graphql/swagger
  3. try the POST request with arguments

Expected behavior

The variables sent in the body must be recognised by @nestjs/graphql

Screenshots or Videos

No response

Platform

  • OS: macOS
  • NodeJS: 18.5.0
  • "@graphql-yoga/nestjs": "^1.0.0",
  • "@graphql-yoga/plugin-sofa": "^1.8.0",
  • "graphql-yoga": "^3.8.0",
  • "graphql": "^16.6.0",
  • "@nestjs/graphql": "^11.0.4",
  • "@nestjs/core": "^9.4.0",

Additional context

No response

@lukadriel7
Copy link
Author

After update it doesn't work anymore

This was referenced May 7, 2024
This was referenced May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants