Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

catalogContextUpdate not working

Solved

catalogContextUpdate not working

sreid
Visitor
2 1 0

Hi all, I'm trying to use the catalogContextUpdate GraphQL mutation. I haven't had any trouble using many of the GraphQL mutations but this one doesn't work. Below is the variable I'm sending.

sreid_1-1696914164188.png

 

When I send I get the error "Must have `contexts_to_add` or `contexts_to_remove` argument". I'm not sure what this means since I'm sending contextToAdd. Any help is appreciated. Thanks in advance. 

 

sreid_0-1696914094783.png

 

 
Accepted Solution (1)

sreid
Visitor
2 1 0

This is an accepted solution.

I was able to figure it out, the query needed to be changed as follows:

sreid_0-1696917301890.png

 

View solution in original post

Reply 1 (1)

sreid
Visitor
2 1 0

This is an accepted solution.

I was able to figure it out, the query needed to be changed as follows:

sreid_0-1696917301890.png