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.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

sellingPlanGroups created_at search query filter isn't working

sellingPlanGroups created_at search query filter isn't working

appdev2023
Shopify Partner
21 2 3

suppose a query like so

sellingPlanGroups(first: 1, query: "created_at:'2023-07-02T04:23:55Z'"){
      nodes {
        createdAt
      }
    }

In my tests, this always returns the nodes as an empty array... even if the date matches the sellingPlanGroup.createdAt exactly.

{"data":{"sellingPlanGroups":{"nodes":[]}}

I can drop the query filter and the nodes will be populated with the sellingPlanGroup matching the createdAt date. 

{"data":{"sellingPlanGroups":{"nodes":[{createdAt:"2023-07-02T04:23:55Z"}]}}

I believe the filter is breaking silently on Shopify's side. The docs don't give any other description. Presumably it is the same as the created_at example in the filter docs

Reply 1 (1)

SBD_
Shopify Staff
1831 273 423

Hey @appdev2023 

 

Can you DM me store details so I can replicate please?

Scott | Developer Advocate @ Shopify