You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-10
Original file line number
Diff line number
Diff line change
@@ -2,14 +2,6 @@
2
2
3
3
Apollo [data source](https://www.apollographql.com/docs/apollo-server/data/fetching-data) for MongoDB
4
4
5
-
Note: This README applies to the current version 0.6.0 and is meant to be paired with Apollo Server 4.
6
-
See the old [README](README.old.md) for versions 0.5.4 and below, if you are using Apollo Server 3.
7
-
8
-
**Installation**
9
-
```
10
-
npm i apollo-datasource-mongodb
11
-
```
12
-
13
5
This package uses [DataLoader](https://github.com/graphql/dataloader) for batching and per-request memoization caching. It also optionally (if you provide a `ttl`) does shared application-level caching (using either the default Apollo `InMemoryLRUCache` or the [cache you provide to ApolloServer()](https://www.apollographql.com/docs/apollo-server/performance/cache-backends#configuring-external-caching)). It does this for the following methods:
14
6
15
7
-[`findOneById(id, options)`](#findonebyid)
@@ -19,9 +11,9 @@ This package uses [DataLoader](https://github.com/graphql/dataloader) for batchi
19
11
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
20
12
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
21
13
22
-
**Contents:**
23
-
14
+
-[Compatibility](#compatibility)
24
15
-[Usage](#usage)
16
+
-[Install](#install)
25
17
-[Basic](#basic)
26
18
-[Batching](#batching)
27
19
-[Caching](#caching)
@@ -32,11 +24,25 @@ This package uses [DataLoader](https://github.com/graphql/dataloader) for batchi
0 commit comments