Regarding New APIs to read and write shipping options in delivery profile - Shopify developer changelog
Whilst the new functionality is welcomed, the new query structure adds several levels of depth and makes querying for shipping rates highly inefficient.
Previously with Rest, we can pull all rate and zones in a single request.
With the current stable versions of graphql, we can still do this for stores with a reasonable number of profiles, location groups, zones and rates, but this new structure adds another two levels of depth and prevents us from being able to look up everything in one query.
The pagination functionality doesn’t really help when we need to paginate at different depths and ultimately requires a number of different queries, we want to try and avoid running bulk queries as well here as we’re just trying to work out which zones our carrier service app hasn’t been added to so we can notify the user.
I understand methodDefinitions.rateProvider hasn’t been deprecated yet but i’d imagine it will be some point down the track, in view of this, can the new structure be simplified somewhat to reduce the depth required or perhaps we can have locationGroups on the query root so we can look them up directly?