Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

Graphql Request for IDFilter gives coered Null Value Exception

Avatar

Level 1

I have a graphql query which takes IDFilter! as parameter and this works fine in the graphql editor and when i try to request from postman i am getting 

"Variable 'paths' has an invalid value: Variable 'paths' has coerced Null value for NonNull type 'IDFilter!'"
exception.
 
My Graphql Query

query ($expression:IDFilter!) {
internetList(
filter: {
_path: $expression
}
) {
items {
_path
}
}
}

Graphql Variables
{
   "expression":{
      "_logOp":"OR",
      "_expressions":[
         {
             "_operator": "EQUALS",
            "value":"/content/dam/sample/content-fragments/internet/internet1"
         },
         {
            "_operator": "EQUALS",
            "value":"/content/dam/sample/content-fragments/internet/internet2"
         }
      ]
   }
}


IndrajithPa_1-1727337666497.png

 


 




Topics

Topics help categorize Community content and increase your ability to discover relevant content.

0 Replies