Braintree GraphQL

Comments

9 comments

  • Official comment
    viliandy leonardo Product Management Director
    Answer Pro
    Top Contributor

    Sara Parsons Danny Rojas

    I want to let you know that we are working on GraphQL generic connector and it is targeted for Q2 2022 platform release. Below is a preview of what's coming and the feature capability so that building integration with GraphQL endpoints will be less complex and tedious. Thanks

     

  • Danny Rojas
    Engaged
    Celigo University Level 2: Seasoned

    Have you dealt with paginating through the results when calling a search query on transactions? I've tried using Post Body pagination method but I can't figure out how to reference the endCursor in my paging post body request. Any ideas?

    0
  • Adel Haider Solutions Engineer
    Top Contributor
    Celigo University Level 3: Master

    Hey Danny Rojas,

    Thank-you for your question, glad to see you're trying out the Braintree GraphQL API.

    I'm yet to try the pagination myself but I can have a look at the use-case and provide some feedback. Can you attach screenshots of how you've configured the pagination on the Celigo side?

    0
  • Danny Rojas
    Engaged
    Celigo University Level 2: Seasoned

    Thanks for replying Adel, on the first screenshot I have preview data that shows the pageInfo property with the pagination so in my second screenshot in the paging post body I basically add the same query I'm doing the first time but I now add the handlebar in the parameter "after" to reference the endCursor of the current page but I can see I don't have that resource in the handlebar editor. Any help on how to do this would be appreciated. Thanks again.

    0
  • Adel Haider Solutions Engineer
    Top Contributor
    Celigo University Level 3: Master

    Hi Danny Rojas

    You're code looks correct. Even if the data doesn't show up in the editor, you still have access to whatever is in the payload in runtime at the moment of processing the pagination request.

    What error / behaviour are you seeing on your end?

    0
  • Danny Rojas
    Engaged
    Celigo University Level 2: Seasoned

    Adel, 

    All I'm getting when running flow is the first page of results so it's not paginating and I don't get any errors. So I'm not sure what's going on.

    I have tried different handlebars paths but still with no success:

    1. result.pageInfo.endCursor

    2. record.pageInfo.endCursor

    3. pageInfo.endCursor

    4. data.search.transactions.pageInfo.endCursor (took out the resource path)

     

    0
  • Adel Haider Solutions Engineer
    Top Contributor
    Celigo University Level 3: Master

    Hi Danny Rojas

    Let's set up a call next week to dig into this together. :)

    • Where are you based?
    • What's your email address?
    0
  • Danny Rojas
    Engaged
    Celigo University Level 2: Seasoned

    Adel, I'm in Mountain Time and my email is dannyr@squire.com. I can be flexible anytime.

    0
  • Sara Parsons

    Hello, 

    Any updates to the pagination issue with GraphQL?  I'm looking to integrate two APIs, one is REST and the other is Graph.  When I receive multiple pages of results, I'm having trouble figuring out how to configure pagination to get the next page's worth of information.

    ============================
    UPDATED 8/2022: Answer now found at Manage Braintree GraphQL pagination.

    0

Please sign in to leave a comment.