53 lines
754 B
TypeScript
53 lines
754 B
TypeScript
import { gql } from '@apollo/client';
|
|
|
|
export const sessionFragment = gql`
|
|
fragment Session on Session {
|
|
userId
|
|
accessToken
|
|
}
|
|
`;
|
|
|
|
export const bookFragment = gql`
|
|
fragment Book on Book {
|
|
id
|
|
title
|
|
description
|
|
author {
|
|
id
|
|
username
|
|
}
|
|
createdAt
|
|
updatedAt
|
|
progressStatus
|
|
wordsTotal
|
|
chaptersTotal
|
|
ratingTotal
|
|
reviewsTotal
|
|
}
|
|
`;
|
|
|
|
export const bookChapterFragment = gql`
|
|
fragment BookChapter on BookChapter {
|
|
id
|
|
title
|
|
createdAt
|
|
updatedAt
|
|
foreword
|
|
footnote
|
|
sequenceNumber
|
|
reviewsTotal
|
|
}
|
|
`;
|
|
|
|
export const reviewFragment = gql`
|
|
fragment Review on Review {
|
|
id
|
|
author {
|
|
id
|
|
username
|
|
}
|
|
text
|
|
ratingTotal
|
|
createdAt
|
|
}
|
|
`;
|