Hi All, I am pretty new to the shopify development , So The Draftorder Api is returning the Null Pointer expection for the Graphql query we are sending to shopify, I need some help on this , PLease guide me.
Here is the graphgl query mutation we are sending
mutation {
draftOrderCreate(draftOrder: {
lineItems: [
#foreach( $lineItem in $lineItems )
{
variantId: "$lineItem.id"
quantity: $lineItem.quantity
}
#end
]
}) {
draftOrder {
id
invoiceUrl
}
userErrors {
field
message
}
}
}
And thats throwing an Null pointer when trying to checkout
Hey @sivainguva
Can you grab the x-request-id from the response header so I can take a further look?
Kevin_A | Developer Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Hey Kevin, I am able to resolve the issue, i am having one more issue That is , we have a deadline to upgrade our apps API version to 2020 or later , so i see the page based pagination is being deprecated , so i just wanted to know where we have to do the following changes to change it to cursor based pagination.
User | Count |
---|---|
12 | |
11 | |
9 | |
8 | |
5 |