-
-
Notifications
You must be signed in to change notification settings - Fork 313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Meta Objects? #1068
Comments
Hey all, I believe this is related so I’ll post here… I’m trying to access MetafieldService through ShopifySharp: Any thoughts appreciated! Thanks, |
@tcorvin I don't think your question has anything to do with mine. Metaobjects and Metafields are different things in Shopify. @nozzlegear Do you have any thoughts on Metaobjects? I can use them using the GraphService, but it looks like a bit complex. If this the way to go at the moment? |
Oh yes, sorry, I meant to get back to your question when I added that label! Unfortunately it is indeed complex at the moment using the GraphService and the generated schema objects. I've been using Metaobjects recently for a client's app and it was a bit of a pain to work with, so I'm actively working on improving the whole GraphQL experience with ShopifySharp starting with deprecating a bunch of the unnecessary overloads in #1051. After I get that merged in the next couple of days, my plan is to dive into #1072. I don't have a time estimate for that, but ultimately I want to have a dotnet tool that will let you write the graph queries you're going to use for your metaobjects, then this tool will create specialized ShopifySharp services with exactly the entities and methods needed to make those requests. So for contrived example, if you only need the In the meantime, I'll try to find the example code I was using to create Metaobjects and definitions using the current GraphService. |
@jpboskdnz I assume you've checked the API docs: https://shopify.dev/docs/api/admin-graphql/2024-04/objects/Metaobject Using the What are you trying to do exactly? |
Taking a look at the following file might be helpful:
|
Thanks @nozzlegear and @clement911 for pointing me into the right direction. Because we have created a somewhat complex structure in the Metaobjects, including translations in multiple languages, it's quite a work to put the data into Shopify using the GraphQL APIs. But it is what it is for now :-) |
Oh, so Metaobjects are not supported at all by this library? It's like Ontraport Custom Objects, I implemented support here Perhaps you could take inspiration from my design. |
Hi,
Is there any way to use Shopify's Meta Objects from ShopifySharp? I would like to save some structured data into Meta Objects, but the only reference I see within ShopifySharp is in the generated GraphQL Schema.
Glad to hear, thanks!
Best regards,
JP
The text was updated successfully, but these errors were encountered: