Getting error while passing the content fragment path in the graphQL API end point
I have written graphQL Query to get the country data by path
Query :
query getCountryData($path:ID!){
countryList(
filter:{
_path:{
_expressions:[{
value:$path
_operator:STARTS_WITH
}]
}
}
){
items{
countryName
countryCode
countryIsdCode
}
}
}
Request :
{"path": "/content/dam/test/cf/country/en_UK/"}
API end point :
http://localhost:4502/graphql/execute.json/sia/country;path=/content/dam/test/cf/country/en_UK/;
When I hit this end point I'm getting error like the below
{"errors":[{"errorType":"ServletError","message":"Internal Servlet Failure","details":"Suffix: '/test/country/content/dam/test/cf/country/en_UK/' does not contain a path"}]}Do we have any solution for this