radar/twist-v2

View on GitHub
frontend/src/Book/Note/NoteQuery.tsx

Summary

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

export default gql`
  query note($bookPermalink: String!, $number: Int!) {
    note(bookPermalink: $bookPermalink, number: $number) {
      ...note

      element {
        ...elementWithInfo
      }
    }
  }

  ${ElementWithInfoFragment}
  ${NoteFragment}
`;