/**
 * GraphQL queries for {{ model_name }}.
 *
 * ⚠️ AUTO-GENERATED BY PRISM - DO NOT EDIT
 */

import { graphql } from '../gql';

/** Get a single {{ model_name }} by ID */
export const Get{{ model_name }}Query = graphql(`
  query Get{{ model_name }}($id: Int!) {
    {{ camel_name }}(id: $id) {
      id
{{ fields_indent_6 }}
    }
  }
`);

/** List {{ plural_camel }} with pagination */
export const List{{ model_name }}sQuery = graphql(`
  query List{{ model_name }}s($pagination: OffsetPaginationInput) {
    {{ plural_camel }}(pagination: $pagination) {
      edges {
        node {
          id
{{ fields_indent_10 }}
        }
        cursor
      }
      pageInfo {
        hasNextPage
        hasPreviousPage
        startCursor
        endCursor
      }
      totalCount
    }
  }
`);
