How to set default inventory "stocked at" location

Hi,
We are migrating to the graphQL API from Rest.

In the Rest api, using the “inventory_levels/connect.json” would connect a product and set the default stock location to the requested location.

In the graphQL version, it seems that we can connect a location, but not indicate it as a default. The user must go into the Shopify admin UI and change the default stock location.

In the case of managing tens of thousands of products, this would be a nearly impossible task.

Any help would be appreciated!

Could you please try the following API?

Hi,
This works for attaching the inventory location and setting the inventory quantities.

However, it doesn’t set the default fulfillment location. I believe that’s what is missing. I haven’t found anything in the graphQL docs that detail how to change the default location (this was different in the rest version).