Skip to content

Commit 55241e9

Browse files
author
Alireza Zamani
committed
Update name and package info
1 parent 3eb1e3e commit 55241e9

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@ To use pagination in GraphQL, it's proposed by the spec that we use the "Connect
1414
On Yarn:
1515

1616
```shell
17-
yarn add @exonest/graphql-connections
17+
yarn add nestjs-gql-connections
1818
```
1919

2020
On NPM:
2121

2222
```shell
23-
npm install @exonest/graphql-connections
23+
npm install nestjs-gql-connections
2424
```
2525

2626
## Usage
2727

2828
You can create a new paginated model like so:
2929

3030
```ts
31-
import { Paginated } from '@exonest/graphql-connections';
31+
import { Paginated } from 'nestjs-gql-connections';
3232
import { Product } from '../product.model';
3333

3434
export class ProductConnection extends Paginated(Product) {}
@@ -49,7 +49,7 @@ resourcePublications(
4949

5050
## Apollo Cache Compatability
5151

52-
Be default, Apollo server won't cache if a field on resolver is an object (non-scalar), thinking non-scalar fields need fetching and are probably somehow independent ([more info](https://www.apollographql.com/docs/apollo-server/performance/caching/#default-maxage)). While in the case of pagination's `node` object or `edges`, they are already fetched and available. So we've added cache control inheritance to all the respective fields and you don't really have to worry about that. This package goes nicely with the other exonest package for GraphQL caching, [exonest/graphql-cache-control](https://github.com/exonest/graphql-cache-control)
52+
Be default, Apollo server won't cache if a field on resolver is an object (non-scalar), thinking non-scalar fields need fetching and are probably somehow independent ([more info](https://www.apollographql.com/docs/apollo-server/performance/caching/#default-maxage)). While in the case of pagination's `node` object or `edges`, they are already fetched and available. So we've added cache control inheritance to all the respective fields and you don't really have to worry about that. This package goes nicely with the other [overnested](https://github.com/overnested) package for GraphQL caching, [overnested/graphql-cache-control](https://github.com/overnested/graphql-cache-control)
5353

5454
## With Prisma
5555

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.1.0",
2+
"version": "0.1.1",
33
"license": "MIT",
44
"main": "dist/index.js",
55
"typings": "dist/index.d.ts",
@@ -10,10 +10,10 @@
1010
"engines": {
1111
"node": ">=10"
1212
},
13-
"homepage": "https://github.com/exonest",
13+
"homepage": "https://github.com/overnested",
1414
"repository": {
1515
"type": "git",
16-
"url": "https://github.com/exonest/graphql-connections"
16+
"url": "https://github.com/overnested/nestjs-gql-connections"
1717
},
1818
"scripts": {
1919
"start": "tsdx watch",
@@ -36,16 +36,16 @@
3636
"singleQuote": true,
3737
"trailingComma": "es5"
3838
},
39-
"name": "@exonest/graphql-connections",
39+
"name": "@overnested/nestjs-gql-connections",
4040
"author": "Alireza Zamani",
41-
"module": "dist/graphql-connections.esm.js",
41+
"module": "dist/nestjs-gql-connections.esm.js",
4242
"size-limit": [
4343
{
44-
"path": "dist/graphql-connections.cjs.production.min.js",
44+
"path": "dist/nestjs-gql-connections.cjs.production.min.js",
4545
"limit": "10 KB"
4646
},
4747
{
48-
"path": "dist/graphql-connections.esm.js",
48+
"path": "dist/nestjs-gql-connections.esm.js",
4949
"limit": "10 KB"
5050
}
5151
],

0 commit comments

Comments
 (0)