Help with cursor based paging

Solved
Manaspaul623
Tourist
5 0 3

Shopify product searching by title is supported with exactly same product title name. Partially title searching is not supported by shopify in recent Rest Admin api version. But it is available in GraphQL api. You can use it.


@maltillo wrote:

Our app is backend. We allow users to apply bulk price updates to their products. They first need to search and filter through to find the products they want to update. Before they could search 'Blue' and the search would bring up all products with 'blue' in the title. Now that doesn't work.

 

We are using REST API.

 


 

maltillo
Shopify Partner
12 0 0

Thanks for your reply.

 

Our app is written in REST API

Does this mean re-writing the entire app in GraphQL api?

0 Likes
Manaspaul623
Tourist
5 0 3

No, not at all. 

You can only do the searching operation with GraphQL whereas other operation in Rest API


@maltillo wrote:

Thanks for your reply.

 

Our app is written in REST API

Does this mean re-writing the entire app in GraphQL api?



.

0 Likes
WOTIO
Excursionist
33 0 5

The parsing method Dante provided worked for me. The links are there in the response, but they will not show up in the browser rendered view of the page if you are printing out the response.

WOTIO App: https://apps.shopify.com/automatic-account-invites
0 Likes
Saso-WD
New Member
1 0 0

Holly cow, spent 2 hours trying to figure this one out, had the same issue O.o

0 Likes
aatmik
New Member
1 0 0

I totally agree with you and feel like throwing the same egg on the person who decided the stupid syntax of using <>'s for the cursor-pagination links.

How immature to complicate things.

First the user will have to parse the link header itself and use explode to get value of the rel parameter and then use the link finally.

0 Likes
MarceloDias
New Member
1 0 0

I was thinking that i had the same problem,

but the truth was, how the link is between "<>" and i tried to see it in a Browser

the Browser understand that everything is between the "<>" as a HTML tag.

But in Google Chrome is possible to use CTRL + U ( or right click -> show source code ) and there will be the link.

 

0 Likes