RapidQL

Last Updated Aug 07, 2021

Table of Contents:

What is RapidQL?

Querying multiple APIs is a pain. RapidQL lets developers query multiple API resources at a time, combining them to create one unified Query.

RapidQL Commands

Querying

You can perform queries using the method rql.query().

rql.query(` { a } `, { a: 1, b: 2 }).then(console.log).catch(console.warn);

Logging

Similarly to querying, you can directly log the results of your query using the rql.log() method.

rql.log(` { a } `, { a: 1, b: 2 })

HTTP Requests

With RapidQL, you can also connect to any HTTP url using Http.get(). You may also use patch, post, and put requests.

``` const RapidQL = require('RapidQL'); const rql = new RapidQL({});

rql.log({ Http.get(url:"http://httpbin.org/ip") { origin } }); ```

More Parameters

An HTTP request in RQL can take many parameters beyond the url. The parameters include:

  • url: a fully qualified URI
  • body: entity body for PATCH, POST and PUT requests (not usable on GET requests)
  • form: data to pass for a multipart/form-data request (not usable on GET requests)
  • json: a boolean that when true, sets body to JSON representation of value and adds the
  • Content-type: application/json header (not usable on GET requests)
  • headers: HTTP headers (default: {})
  • bearer: an OAuth bearer token
  • basic: credentials for basic auth.

Conclusion

RapidQL lets developers query multiple API resources at a time, combining them to create one unified Query.

Try Abstract's suite of free API's, trusted by 100,000+ developers.
Get started