Note
Note Markdown memorizzate localmente sul dispositivo. Supporta tag, cestino/ripristino ed esportazione.
Definizioni di tipo
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
}Operazioni
notes
Cerca note (titolo + contenuto). Lascia la query vuota per elencare tutte le note non cestinate.
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
Conta le note corrispondenti a una query.
query GetNoteCount($query: String!) {
noteCount(query: $query)
}note
Recupera una singola nota per ID.
query GetNote($id: ID!) {
note(id: $id) { id title content createdAt updatedAt trashed tags { id name } }
}saveNote
Crea o aggiorna una nota. Passa un id vuoto per creare; passa un id esistente per aggiornare.
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
Sposta nel cestino le note corrispondenti a una query.
mutation TrashNotes($query: String!) {
trashNotes(query: $query)
}restoreNotes
Ripristina le note cestinate corrispondenti a una query.
mutation RestoreNotes($query: String!) {
restoreNotes(query: $query)
}deleteNotes
Elimina definitivamente le note cestinate corrispondenti a una query. Opera solo su note già cestinate.
mutation DeleteNotes($query: String!) {
deleteNotes(query: $query)
}exportNotes
Serializza le note corrispondenti a una query (inclusi i tag) come stringa JSON per backup/trasferimento.
mutation ExportNotes($query: String!) {
exportNotes(query: $query)
}