Skip to content
No description or website provided.
Ruby
Branch: master
Clone or download
Latest commit ae0279f Jan 29, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
apps/api
bin
config
db
lib
public
spec
.env.development.example
.env.test.example
.gitignore
.hanamirc
.rspec
.rubocop
.rubocop.yml
.ruby-version
Gemfile
Gemfile.lock
README.md
Rakefile
circle.yml
config.ru

README.md

Upment hanami

CircleCI codecov Maintainability

Examples:

Users

query {
  users(limit: 3, order: desc) {
    id
    firstName
    lastName
    email
  }
}  

User

query {
  user(id: 1){
    id
    firstName
    lastName
    email
  }
}

User update

mutation updateUser($id: Int!, $firstName: String!, $lastName: String!) {
  updateUser(id: $id, firstName: $firstName, lastName: $lastName) {
    id
    firstName
    lastName
    email
  }
}

Sign In

mutation SignIn($email: String!, $password: String!) {
  signIn(email: $email, password: $password) {
    id
    firstName
    lastName
    email
    refreshToken
    accessToken
  }
}

Sign Up

mutation SignUp($email: String!, $password: String!) {
  signUp(email: $email, password: $password) {
    id
    firstName
    lastName
    email
    refreshToken
    accessToken
  }
}

Current user

query currentUser{
  currentUser{
    id
    firstName
    lastName
    email
    refreshTokens{
      id
      browserName
      deviceName
      osName
      userAgent
      token
      createdAt
    }
  }
}

Destroy refresh token

mutation destroyRefreshToken($id: Int!) {
  destroyRefreshToken(id: $id) {
    id
  }
}
You can’t perform that action at this time.