Skip to content

AdamBrodzinski/Meteor-RethinkDB-GraphQL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Meteor RethinkDB

Currently Meteor doesn't support RethinkDB. However, GraphQL does and we can use any promise based database with the Promise polyfill. GraphQL doesn't support realtime (yet) so this example will not update like Meteor publications will.

Note, no UI is shown here but you can look at kadira-samples/meteor-graphql-demo for the same blog with UI & Mongo

Also, this demo does not use RethinkDB joins but you could (and should) use them in production. This would mean one database call for posts instead of several calls.

Usage

  • install RethinkDB (brew install rethinkdb on the Mac)
  • rethinkdb (run in another terminal)
  • Add the following tables to test db: posts comments authors
  • meteor run (fixtures will create fake data)
  • visit localhost:3000/graphql

To start your own project just add these packages:

meteor add kadira:graphql
meteor add promise
meteor create --package rethinkdb
# manually add from Npm like example
meteor add rethinkdb

About

A Meteor and RethinkDB Example Using GraphQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published