Skip to content

Commit

Permalink
add new adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
lexich committed Oct 29, 2021
1 parent 25c25c6 commit e9d92c7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions js/packages/graphql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,15 @@ It will start 3 services
- mongo: the instance of MongoDB for caching layer
- ingester: the process which fills Database layer
- server: graphql server, which is available at http://localhost:4000/

### Add other adapters
For creating new adapter you need only implement interface
```
IDataAdapter<
TWriter extends IWriter,
TReader extends IReader,
>
```

Where `IDataAdapter` initializes and add access to `TWriter` which implements `IWriter` and `TReader` which imlements `IReader`.
For inspiration see `js/packages/graphql/src/adapters/mongo` folder.

0 comments on commit e9d92c7

Please sign in to comment.