Notas
Notas en Markdown almacenadas localmente en el dispositivo. Admite etiquetado, papelera/restauración y exportación.
Definiciones de tipos
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
}Operaciones
notes
Busca notas (título + contenido). Deja la consulta vacía para listar todas las notas no enviadas a la papelera.
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
Cuenta las notas que coinciden con una consulta.
query GetNoteCount($query: String!) {
noteCount(query: $query)
}note
Obtiene una única nota por ID.
query GetNote($id: ID!) {
note(id: $id) { id title content createdAt updatedAt trashed tags { id name } }
}saveNote
Crea o actualiza una nota. Pasa un id vacío para crear; pasa un id existente para actualizar.
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
Mueve las notas que coinciden con una consulta a la papelera.
mutation TrashNotes($query: String!) {
trashNotes(query: $query)
}restoreNotes
Restaura las notas enviadas a la papelera que coinciden con una consulta.
mutation RestoreNotes($query: String!) {
restoreNotes(query: $query)
}deleteNotes
Elimina definitivamente las notas en la papelera que coinciden con una consulta. Solo opera sobre notas ya en la papelera.
mutation DeleteNotes($query: String!) {
deleteNotes(query: $query)
}exportNotes
Serializa las notas que coinciden con una consulta (incluidas las etiquetas) como una cadena JSON para copia de seguridad/transferencia.
mutation ExportNotes($query: String!) {
exportNotes(query: $query)
}