Skip to content

Commit c3840ed

Browse files
committed
change pkg name
1 parent e3de23b commit c3840ed

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ View the [Apollo Server documentation for data sources](https://www.apollographq
1717

1818
## Usage
1919

20-
To get started, install the `@starptech/apollo-datasource-rest` package:
20+
To get started, install the `apollo-ds-rest` package:
2121

2222
```bash
23-
npm install @starptech/apollo-datasource-rest
23+
npm install apollo-ds-rest
2424
```
2525

2626
To define a data source, extend the [`RESTDataSource`](https://github.com/apollographql/apollo-server/tree/main/packages/apollo-datasource-rest) class and implement the data fetching methods that your resolvers require. Data sources can then be provided via the `dataSources` property to the `ApolloServer` constructor, as demonstrated in the _Accessing data sources from resolvers_ section below.
2727

2828
Your implementation of these methods can call on convenience methods built into the [RESTDataSource](./src/RESTDataSource.ts) class to perform HTTP requests, while making it easy to build up query, header, caching parameters, parse JSON results, and handle errors.
2929

3030
```ts
31-
const { RESTDataSource } = require("@starptech/apollo-datasource-rest");
31+
const { RESTDataSource } = require("apollo-ds-rest");
3232

3333
class MoviesAPI extends RESTDataSource {
3434
constructor() {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@starptech/apollo-datasource-rest",
2+
"name": "apollo-ds-rest",
33
"version": "0.0.0",
44
"author": "Dustin Deus <[email protected]>",
55
"license": "MIT",

0 commit comments

Comments
 (0)