An open API service indexing awesome lists of open source software.

https://github.com/rlancer/graphql-merge

An example of how to merge two databases using GraphQL
https://github.com/rlancer/graphql-merge

dataloader express graphql

Last synced: about 1 month ago
JSON representation

An example of how to merge two databases using GraphQL

Awesome Lists containing this project

README

          

# Merging RethinkDB and Postgres with GraphQL

> An example which shows how to merge 2 data sources into one via GraphQL · *[Read the full post on Medium](https://blog.collaborizm.com/merging-rethinkdb-and-postgres-with-graphql-b8801f69c8ea)*

## Getting started

```bash
git clone git@github.com:rlancer/graphql-merge.git
cd graphql-merge

# yarn
yarn
yarn start

# npm
npm i
npm start
```

It should automatically open up the GraphiQL interface, paste in the following query to see it work.

```graphql
{
payments {
id
user_id
message
amount
user {
id
name
}
}
}

```

![graphql-merge](https://user-images.githubusercontent.com/1339007/31953649-800fd524-b8b1-11e7-9520-98fc7d3b5490.png)

# Enjoy
Join me on [Collaborizm](https://www.collaborizm.com/) for more tech and hacking!