"Field 'priceRules' doesn't exist on type 'QueryRoot'"

xivic
New Member
1 0 0

I have such a 

query {
                              priceRules (first:10) {
                                edges {
                                  node {
                                    id
                                    discountCodes (first:10) {
                                      edges {
                                        node {
                                          code
                                          id
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }`


and in response I receive "Field 'priceRules' doesn't exist on type 'QueryRoot'"

What we do wrong, or why this error occurs.

0 Likes