Sha256: 07d709f17dfcc8337c7aa02bf070acdbe7175e38a659bfd349d8b2f6c84188e5

Contents?: true

Size: 578 Bytes

Versions: 1

Compression:

Stored size: 578 Bytes

Contents

# GraphTypes

[![Build Status](https://travis-ci.org/wbotelhos/graph_types.svg)](https://travis-ci.org/wbotelhos/graph_types)
[![Gem Version](https://badge.fury.io/rb/graph_types.svg)](https://badge.fury.io/rb/graph_types)

A Collection of Types for GraphQL.

## DateTimeType

```ruby
birthday {
  formatted(strftime: "%Y-%m-%d")
}
```

```json    
"birthday": {
  "formatted": "2017-11-21"
}
```

## MoneyType

```ruby
amount {
  cents
  formatted(delimiter: ".", separator: ",", unit: "R$ ")
}
```

```json
"amount": {
  "cents": 10000,
  "formatted": "R$ 100,00"
}      
```

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
graph_types-0.1.0 README.md