-
-
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
Order update issue with GraphQL #1108
Comments
Any examples would be greatly appreciated. I will also include screenshots of programming logic. |
Now here is my screenshots. I am testing the mutation process to see if there are issues. Once successful, can duplicate to other mutations. Problem is that when executing the process, when it execute the GraphService.SendAsync(...), the processor stops and abnormally terminates with no errors that mean a thing. Here is my UpdateOrderGQL mutation. I grab all the text. This is my class that collects data. Once an object is instantiated and later serialized. My manager class starts the process.. This fills in the appropriate object properties and sends the object to the Order Processor class. The order GQL Processor get the template into a string value and passes it to the GraphQL Processor to be processed. This is where I use ShopifySharp's graphQL service and sends the update order GQL to be processed. My first question is should I use the SendAsync when doing mutations? |
Thanks for your assistance. |
with this being stated, I believe the following changes for Shopify mutations: The Graph Service would use the following: I propose the following in light blue below. Use Newtonsoft.Json.JsonConvert.SerializeObject instead of System.Text.Json.JsonSerializer.Serialize. Thoughts? |
Sorry, I missed this and I'm just catching up now. I'm working on ShopifySharp this afternoon, I'll review your info and update soon! |
@jbyte2009 Okay, sorry for the delay! Thanks for digging in, and double-thanks for all of the screenshots. To answer your question, there's a method named Regarding the serializer, I believe that's fixed in the branch I'm working on, but I will double check and make sure it gets some unit tests added before I merge the work into the main branch. |
Awesome, thanks for the workaround!
I'm actively working on finishing up my pull request and getting it merged in/published, it's my main priority right now. I want to have it published by the end of the week. |
When using mutations with variables, I am getting issues with updating orders with notes. It appears that when debugging, the application closes unexpectedly, and there is no exception to be had.
The text was updated successfully, but these errors were encountered: