Notes
Markdown notes stored locally on the device. Supports tagging, trash/restore, and export.
Type Definitions
type Note {
id: ID!
title: String!
content: String! # Markdown body
createdAt: String! # ISO 8601
updatedAt: String!
trashed: Boolean! # true when in trash
tags: [Tag!]!
}
input NoteInput {
title: String
content: String
}Operations
notes
Search notes (title + content). Leave query empty to list all non-trashed notes.
query GetNotes($offset: Int!, $limit: Int!, $query: String!) {
notes(offset: $offset, limit: $limit, query: $query) {
id title content createdAt updatedAt trashed
tags { id name }
}
}noteCount
Count notes matching a query.
query GetNoteCount($query: String!) {
noteCount(query: $query)
}note
Fetch a single note by ID.
query GetNote($id: ID!) {
note(id: $id) { id title content createdAt updatedAt trashed tags { id name } }
}saveNote
Create or update a note. Pass an empty id to create; pass an existing id to update.
mutation SaveNote($id: ID!, $input: NoteInput!) {
saveNote(id: $id, input: $input) { id title updatedAt }
}saveFeedEntriesToNotes
Bulk-save feed entries matching a query as notes (title = feed entry title, content = "# <title>\n\n<body>"). Returns the saved feed entry IDs.
mutation SaveFeedEntriesToNotes($query: String!) {
saveFeedEntriesToNotes(query: $query)
}trashNotes
Move notes matching a query to the trash.
mutation TrashNotes($query: String!) {
trashNotes(query: $query)
}restoreNotes
Restore trashed notes matching a query.
mutation RestoreNotes($query: String!) {
restoreNotes(query: $query)
}deleteNotes
Permanently delete trashed notes matching a query. Only operates on already-trashed notes.
mutation DeleteNotes($query: String!) {
deleteNotes(query: $query)
}exportNotes
Serialize notes matching a query (including tags) as a JSON string for backup/transfer.
mutation ExportNotes($query: String!) {
exportNotes(query: $query)
}