grapher/README.md

95 lines
2.1 KiB
Markdown
Raw Normal View History

2017-11-30 22:11:43 +02:00
# Grapher 1.3
2016-09-14 16:04:08 +03:00
2016-09-24 08:20:00 +03:00
[![Build Status](https://api.travis-ci.org/cult-of-coders/grapher.svg?branch=master)](https://travis-ci.org/cult-of-coders/grapher)
2016-09-14 16:04:08 +03:00
2017-11-30 22:19:23 +02:00
*Grapher* is a data retrieval layer inside Meteor and MongoDB. It's used in many production apps since 2016.
2016-10-05 11:52:48 +03:00
2017-11-30 22:11:43 +02:00
Main features:
- Innovative way to make MongoDB relational
- Reactive data graphs for high availability
- Incredible performance
- Denormalization Modules
- Connection to external data sources
- Usable from anywhere
2016-10-05 11:52:48 +03:00
2017-11-30 22:11:43 +02:00
It marks a stepping stone into evolution of data, enabling developers to write complex and secure code,
while maintaining the code base easy to understand.
2017-11-30 22:19:23 +02:00
### [Documentation](docs/table_of_contents.md)
### [API](docs/api.md)
### Installation
2017-11-30 22:11:43 +02:00
```
meteor add cultofcoders:grapher
2016-10-14 11:00:03 +03:00
```
2017-11-30 22:11:43 +02:00
2017-11-30 22:19:23 +02:00
### Useful packages and integrations
#### Live View (cultofcoders:grapher-live)
Provides a playground for Grapher and provides documentation of your data
https://github.com/cult-of-coders/grapher-live
#### React
https://github.com/cult-of-coders/grapher-react
2017-11-30 22:11:43 +02:00
2017-11-30 22:19:23 +02:00
#### Vue JS
https://github.com/Herteby/grapher-vue
2017-11-30 22:11:43 +02:00
2017-11-30 22:19:23 +02:00
### Premium Support
2017-11-30 22:11:43 +02:00
2017-11-30 22:19:23 +02:00
If you are looking to integrate Grapher in your apps and want online or on-site consulting and training,
shoot us an e-mail contact@cultofcoders.com, we will be more than happy to aid you.
### Quick Illustration
Query:
```js
2017-11-30 22:11:43 +02:00
createQuery({
posts: {
title: 1,
author: {
fullName: 1
},
comments: {
text: 1,
createdAt: 1,
author: {
fullName: 1
}
},
categories: {
name: 1
}
}
}).fetch();
2017-11-30 22:19:23 +02:00
```
Result:
```
2017-11-30 22:11:43 +02:00
[
{
_id: 'postId',
title: 'Introducing Grapher',
author: {
_id: 'authorId',
fullName: 'John Smith
},
comments: [
{
_id: 'commentId',
text: 'Nice article!,
createdAt: Date,
2016-10-14 11:00:03 +03:00
author: {
2017-11-30 22:11:43 +02:00
fullName: 1
2016-10-14 11:00:03 +03:00
}
}
2017-11-30 22:11:43 +02:00
],
categories: [ {_id: 'categoryId', name: 'JavaScript'} ]
2016-10-14 11:00:03 +03:00
}
2017-11-30 22:11:43 +02:00
]
2017-11-30 22:19:23 +02:00
```