radar/twist-v2

View on GitHub
frontend/src/Book/Notes/NotesQuery.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import gql from "graphql-tag";
import ElementWithInfoFragment from "./ElementWithInfoFragment";
import NoteFragment from "../Notes/NoteFragment";

export default gql`
  query bookNotes($bookPermalink: String!, $state: NoteState!) {
    elementsWithNotes(bookPermalink: $bookPermalink, state: $state) {
      ...elementWithInfo

      notes(state: $state) {
        ...note
      }
    }
  }

  ${ElementWithInfoFragment}
  ${NoteFragment}
`;