m
n
You might need to remove the
data
root field from the object you're passing into the mutation.
m
in my mutation resolver, you mean?
n
Pass this:
Copy code
{
  "title": "Devops Engineer",
  "employer": "<http://Devopsengineers.io|Devopsengineers.io>",
  "date": "2019-01-09T15:56:33.139Z",
  "url": "<https://devopsengineers.io/job-detail/:>",
  "description": "<https://s3.amazonaws.com/devopsengineers.io-employers-logos/Image%20nAME>",
  "tags": {
    "set": [
      "docker",
      " chef",
      " devops"
    ]
  },
  "logo": "<https://s3.amazonaws.com/devopsengineers.io-employers-logos/Image%20nAME>",
  "isRemote": true,
  "provider": "DevopsEngineers"
}
instead of this
Copy code
{
  "data": {
    "title": "Devops Engineer",
    "employer": "<http://Devopsengineers.io|Devopsengineers.io>",
    "date": "2019-01-09T15:56:33.139Z",
    "url": "<https://devopsengineers.io/job-detail/:>",
    "description": "<https://s3.amazonaws.com/devopsengineers.io-employers-logos/Image%20nAME>",
    "tags": {
      "set": [
        "docker",
        " chef",
        " devops"
      ]
    },
    "logo": "<https://s3.amazonaws.com/devopsengineers.io-employers-logos/Image%20nAME>",
    "isRemote": true,
    "provider": "DevopsEngineers"
  }
}
m
but I'm using apollo mutation component in my web app am not sending it like that myself
n
can you show the code of the mutation resolver that's causing the error?
m
oh the mutation resolver has data object in it
that i can remove
@nikolasburk that solved it thank you so much
🙏 1