We have a graphql that gets a list of products and collections from the shopfiy products and collections.
We have custom data set up, the metafields we have are not defined but they have a namespace and key.
When i go check the ‘access on storefront’ it requires the name and description to be filled, I’m not able to select product only text, number or decimal.
I’ve attached our query and what we are getting back
export const GET_PRODUCTS_FOR_COLLECTION_IDS = gq1*> > shopity> > query GetProductsForCollections($ids: [ID! ]!) {> > nodes (ids: $ids) {> > on Collection {> > products(first: 25) {> > edges {> > node {> > title description> > images (first: 2) {> > edges {> > node {> > src> > }> > metafields(identifiers: [> > {namespace: “custom”, key: “test”),> > ]) {> > id value> > }> > variants(first: 1) {> > edges {> > node {> > id price> > }> }> }
Response
description:> > “A 12” by 8" portrait. No mount included. test’> > J> > images: Array (1), metafields: Array (1), …]> > description: "A 12" by 8" portrait. No mount included. tes> > • images: Array (1)> Do: {_ typename:> > ‘Image’, sre: 'https://cdn.shopify.com/s/f> > length: 1> > - [ [Prototype]]: Array(0)> - metafields: Array (1)> > 0: null length: 1> > • [ [Prototype]]: Array (0)> > title: “12"×8" Portrait (no mount)” ~ variants: Array (1)> > - 0:> id: “gid://shopify/ProductVariant/39845834096810” price: “8.75”> _typename: “ProductVariant”> - [ [Prototype]]: Object length: 1> - [ [Prototype]]: Array (0)> typename: “Product”> - [[Prototype]]: Object> - constructor: f Object ()> - hasOwnProperty: f hasOwnProperty ()> - isPrototypeOf: f isPrototypeof()> - propertyIsEnumerable: f propertyIsEnumerable()> - toLocaleString: f toLocaleString ()> - toString: f toString()> - valuedf: f valuedf()> defineGetter> > f> > defineGetter> > _ ( )