now shopify is reminding of using graphql instead of rest api
so this will be automatically cared by your code or we need to write ourself
if this is my code for shopify rest api
$productspp = json_encode($shopify->Product($prod_id)->get(),true);
what will be equivalent for graphql