Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/AlexanderMint/upment-hanami
https://github.com/AlexanderMint/upment-hanami
graphql graphql-server hanami hanami-application rspec trailblazer-operation
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/AlexanderMint/upment-hanami
- Owner: AlexanderMint
- Archived: true
- Created: 2017-08-30T14:45:46.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-29T14:25:29.000Z (almost 6 years ago)
- Last Synced: 2024-08-01T22:49:30.769Z (5 months ago)
- Topics: graphql, graphql-server, hanami, hanami-application, rspec, trailblazer-operation
- Language: Ruby
- Size: 85.9 KB
- Stars: 13
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-hanami - upment-hanami - App on Hanami: JWT, GraphQL, RSpec and [REACT client](https://github.com/AlexanderMint/upment-client) (Hanami Project List / Play/Pet projects)
README
Upment hanami
-----------------------[![CircleCI](https://img.shields.io/circleci/project/github/RedSparr0w/node-csgo-parser.svg)](https://circleci.com/gh/AlexanderMint/upment-hanami/tree/master.svg?style=svg)
[![codecov](https://codecov.io/gh/AlexanderMint/upment-hanami/branch/master/graph/badge.svg)](https://codecov.io/gh/AlexanderMint/upment-hanami)
[![Maintainability](https://api.codeclimate.com/v1/badges/ab52a4ce83314aaec550/maintainability)](https://codeclimate.com/github/AlexanderMint/upment-hanami/maintainability)#### Examples:
Users
``` ruby
query {
users(limit: 3, order: desc) {
id
firstName
lastName
}
}
```User
``` ruby
query {
user(id: 1){
id
firstName
lastName
}
}
```User update
``` ruby
mutation updateUser($id: Int!, $firstName: String!, $lastName: String!) {
updateUser(id: $id, firstName: $firstName, lastName: $lastName) {
id
firstName
lastName
}
}```
Sign In
``` ruby
mutation SignIn($email: String!, $password: String!) {
signIn(email: $email, password: $password) {
id
firstName
lastName
refreshToken
accessToken
}
}
```Sign Up
``` ruby
mutation SignUp($email: String!, $password: String!) {
signUp(email: $email, password: $password) {
id
firstName
lastName
refreshToken
accessToken
}
}
```Current user
``` ruby
query currentUser{
currentUser{
id
firstName
lastName
refreshTokens{
id
browserName
deviceName
osName
userAgent
token
createdAt
}
}
}
```Destroy refresh token
``` ruby
mutation destroyRefreshToken($id: Int!) {
destroyRefreshToken(id: $id) {
id
}
}
```