Skip to content

Query is not working #142

@tkeesdevs

Description

@tkeesdevs

I am trying to do a call using some query, but is not working on PHP, is showing me a empty array

                  $result = $shop->api()->graph('{
                                                                        orders(first: 5, sortKey: ID, reverse: true, query: "id:<4944623304880") {
                                                                          edges {
                                                                            cursor
                                                                            node {
                                                    
                                                                              id
                                                                              name
                                                                            }
                                                                          }
                                                                          pageInfo {
                                                                            hasNextPage
                                                                            hasPreviousPage
                                                                          }
                                                                        }
                                                                      } ');

If I remove the query, it is showing data:

                  $result = $shop->api()->graph('{
                                                                        orders(first: 5) {
                                                                          edges {
                                                                            cursor
                                                                            node {
                                                    
                                                                              id
                                                                              name
                                                                            }
                                                                          }
                                                                          pageInfo {
                                                                            hasNextPage
                                                                            hasPreviousPage
                                                                          }
                                                                        }
                                                                      } ');

if I do the same query on graphql App is working...
image

someone can helpme?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions