Add Files (not images) to product with GraphQL API

Add Files (not images) to product with GraphQL API

PhiWu
Shopify Partner
1 0 0
Hi,

I use GraphQL API to create collections and products. I know how to create images and add these images to a product. I also would like to add some pdfs to a product. To create a file, I use the mutation fileCreate. But how do I link this file to a product. I can't find any product-id field.

Thank you.
Replies 0 (0)