A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hello,
I have this deprecation message (on fields that I don't even use) when using REST admin api:
API Deprecation Notice 10/05/2023 10:31:40 : {"message":"https://shopify.dev/changelog/property-deprecations-in-the-admin-api-order-and-lineitem-resource","path":"https://willemse-fr-fr.myshopify.com/admin/api/2023-04/orders.json?ids=5591202824538,5591206035802,5591206101338,5591208001882,5591212228954,5591212425562&fields=admin_graphql_api_id,client_details,.json"}
on this js code
const { body: { orders } } = await restClient.get({
path: `orders.json?ids=${gOrders.slice(i * 250, (i + 1) * 250).map((x) => x.id.slice(-13)).join(',')}&fields=admin_graphql_api_id,client_details,`,
});
// gOrders is an array with order ids cut in parts of 250 ids as 250 ids in 1 query is the max in the docs
// the order ids are graphql ids, that's why I use id.slice
The thing is I don't have it when using GRAPHQL admin api and when i go to the url in the "message" field it shows things from V2022-07, I am using v2023-01
At first I thought it was a version problem so I updated to v2023-04 but I still have the deprecation message, can someone help me fix this to not have those messages pls? thanks