I am constantly getting this error - ==> Schema change detected for subgraph: listings
error: Composition failed.
error[E029]: Encountered 1 build error while trying to build a supergraph.
Caused by:
INVALID_BODY: [listings] @connect(http: {body:})
on Mutation.createListing
is not valid: nom::error::ErrorKind::Eof: : $args.input.title
numOfBeds: $args.input.numOfBeds
costPerNight: $args.input.costPerNight
I have changed the type Mutation to - type Mutation {
“Create a new listing”
createListing(input: CreateListingInput!): CreateListingResponse @connect(
source: “listings”,
http: {
POST: “/listings?listing[title]={$args.input.title}&listing[numOfBeds]={$args.input.numOfBeds}&listing[costPerNight]={$args.input.costPerNight}”,
headers: [{ name: “Api-Key”, from: “api-key” }]
}
selection: “”"
listing {
id
title
numOfBeds
costPerNight
closedForBooking: closedForBookings
description
photoThumbnail
latitude
longitude
amenities {
id
category
name
}
}
“”"
)
}
But I get back this - {
“data”: null,
“errors”: [
{
“message”: “Request failed”,
“path”: [
“createListing”
],
“extensions”: {
“service”: “listings”,
“http”: {
“status”: 400
},
“connector”: {
“coordinate”: “listings:Mutation.createListing@connect[0]”
},
“code”: “CONNECTOR_FETCH”
}
}
]
}
I need your help