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.

[Bug] GraphQL query returns null for customer tags

[Bug] GraphQL query returns null for customer tags

DCHunt
Visitor
1 0 0

I just found an issue today that wasn't there a couple weeks ago. It appears when doing a GraphQL query against the StoreFront API it is returning null for the whole query if you try to retrieve customer tags. When this query was last ran a couple weeks ago everything was returned properly.

 

For example the following query is valid and currently works fine...

 

    query customer($customerAccessToken: String!) {
        customer(customerAccessToken: $customerAccessToken) {
            displayName
            email
        }
    }

 

The return from this query is {"customer":{"displayName":"John Doe","email":"repeater@gmail.com"}}

 

When adding the tags field to the query like below the entire query returns null...

 

    query customer($customerAccessToken: String!) {
        customer(customerAccessToken: $customerAccessToken) {
            displayName
            email
            tags
        }
    }

 

The return from this query  is {"customer":null}

 

Why did the second query work before but now when adding tags it fails? The account being queried does have tags associated with it.

Replies 0 (0)