Skip to content

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

@lukadriel7

Description

@lukadriel7

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions