mirror of
https://github.com/vale981/apollo-server
synced 2025-03-05 17:51:40 -05:00
docs: Remove rc
dist-tag designation from apollo-datasource-rest
instruction. (#1497)
It is no longer necessary to use the `rc` tag when installing `apollo-datasource-rest`.
This commit is contained in:
parent
3178d81c45
commit
46e3beea6d
1 changed files with 2 additions and 2 deletions
|
@ -9,10 +9,10 @@ Data sources are classes that encapsulate fetching data from a particular servic
|
|||
|
||||
A `RESTDataSource` is responsible for fetching data from a given REST API.
|
||||
|
||||
To get started, install the release candidate of the REST data source:
|
||||
To get started, install the REST data source package:
|
||||
|
||||
```bash
|
||||
npm install apollo-datasource-rest@rc
|
||||
npm install apollo-datasource-rest
|
||||
```
|
||||
|
||||
To define a data source, extend the `RESTDataSource` class and implement the data fetching methods that your resolvers require. Your implementation of these methods can call on convenience methods built into the `RESTDataSource` class to perform HTTP requests, while making it easy to build up query parameters, parse JSON results, and handle errors.
|
||||
|
|
Loading…
Add table
Reference in a new issue