'use strict';

const userByIdGQL = `
  query UserById($id: ID!) {
    userById(id: $id) {
      id
      active
      email
      role
      dateCreated
      dateUpdated
    }
  }
`;
const paginateUsersGQL = `
  query PaginateUsers($page: Int!, $size: Int!) {
    paginateUsers(page: $page, size: $size) {
      totalItems
      perPage
      currentPage
      lastPage
      items {
        id
        email
        role
        active
        dateCreated
        dateUpdated
      }
    }
  }
`;

exports.paginateUsersGQL = paginateUsersGQL;
exports.userByIdGQL = userByIdGQL;
