text: // Imports
  import { GraphQLInt, GraphQLString, GraphQLList } from 'graphql'
  
  // App Imports
  import { UserType, UserLoginType, UserGenderType } from './types'
  import StyleType from '../style/types'
  import { getAll, getById, login, getGenders, getUserStyle } from './resolvers'
  
  // All
  export const users = {
    type: new GraphQLList(UserType),
    resolve: getAll
  }
  
  // By ID
  export const user = {
    type: UserType,
    args: {
      id: { type: GraphQLInt }
    },
    resolve: getById
  }
  
  // User style
  export const styleByUser = {
    type: StyleType,
    args: {
      id: { type: GraphQLInt }
    },
    resolve: getUserStyle
  }
  
  // Auth
  export const userLogin = {
    type: UserLoginType,
    args: {
      email: {
        name: 'email',
        type: GraphQLString
      },
  
      password: {
        name: 'password',
        type: GraphQLString
      },
  
      role: {
        name: 'role',
        type: GraphQLString
      }
    },
    resolve: login
  }
  
  // Genders
  export const userGenders = {
    type: new GraphQLList(UserGenderType),
    resolve: getGenders
  }
  