Notas
Notas em Markdown armazenadas localmente no dispositivo. Suporta tags, lixeira/restauração e exportação.
Definições de 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
}Operações
notes
Pesquise notas (título + conteúdo). Deixe a consulta vazia para listar todas as notas não descartadas.
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
Conte notas correspondentes a uma consulta.
query GetNoteCount($query: String!) {
noteCount(query: $query)
}note
Obtenha uma única nota por ID.
query GetNote($id: ID!) {
note(id: $id) { id title content createdAt updatedAt trashed tags { id name } }
}saveNote
Crie ou atualize uma nota. Passe um id vazio para criar; passe um id existente para atualizar.
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
Mova para a lixeira as notas correspondentes a uma consulta.
mutation TrashNotes($query: String!) {
trashNotes(query: $query)
}restoreNotes
Restaure notas na lixeira correspondentes a uma consulta.
mutation RestoreNotes($query: String!) {
restoreNotes(query: $query)
}deleteNotes
Exclua permanentemente as notas na lixeira correspondentes a uma consulta. Opera apenas sobre notas já descartadas.
mutation DeleteNotes($query: String!) {
deleteNotes(query: $query)
}exportNotes
Serialize notas correspondentes a uma consulta (incluindo tags) como uma string JSON para backup/transferência.
mutation ExportNotes($query: String!) {
exportNotes(query: $query)
}