I want to get a stores name, description and logo. I am trying to do that by calling the shop query https://shopify.dev/docs/api/storefront/2024-04/objects/Shop#field-shop-brand.
const {
admin: { rest, graphql },
} = await authenticate.admin(request);
const query = `
{
shop {
name
description
brand {
logo {
image {
url
}
}
}
}
}
`;
const response = await graphql(query);
But I am getting the following error:
Error: Field 'brand' doesn't exist on type 'Shop'