Api request with GraphQL query

Hello @teodor,

how can execute GraphQL Queries from within wappler API connector,

example GraphQL ;

{
  allCdrs {
    cdrs {
      id
      src
      accountcode
      calldate
      billsec
      timestamp
      duration
      disposition
      outbound_cnum
      linkedid
    }
  }
}

can you guide me ?

I don’t really understand your question Serhat.
What exactly do you need to do with this data?

We don’t have a query builder for GraphQL. The query for GraphQL is normally a simple GET or POST, that is possible with the API connector.

Request will look like:

GET http://myapi/graphql?query={allCdrs{cdrs{id+src+accountcode+calldate+billsec+timestamp+duration+disposition+outbound_cnum+linkedid}}}

See https://graphql.org/learn/serving-over-http/.

3 Likes

yes working with API CONNECTOR …
thanks @patrick @Teodor

1 Like

Would like to see query builder support in wappler for graphql. Shopify’s apis for instance are eventually going to be entirely graphql based. And some of their apis already work exclusively with graphql.

3 Likes

Just noticed that Postman started integrating graphql:

Just a heads up for the team, might be more of a reason to integrate it in the future :slight_smile: