Open GaspardC opened 4 years ago
dateFrom is the key value, my best guess is that it's in the "value" item.
product.addConnection('metafields', { args: { first: 1 } }, (metafield) => {
metafield.add('createdAt') // working
metafield.add('namespace') // working
metafield.add('key') // working
metafield.add('value') // <-- this one holds the dateFrom value.
})
If I am right the "dateFrom" should be in the value
I couldn't find any info on how to retrieve the metafields through the SDK custom queries, thanks for this. This should be in the documentation imo!
Hello 😊
I cannot manage to access custom meta fields,
I'm using:
import Client from 'shopify-buy/index.unoptimized.umd';
and"shopify-buy": "^2.10.0"
I've whiltelisted my custom metafield
dateFrom
to make it accessible (I can retrieve them from the GraphiQL client with the strore front api) :I get the error :
Error: No field of name "dateFrom" found on type "Metafield" in schema
What am I missing here ?
thanks Gaspard