Notes
डिवाइस पर स्थानीय रूप से संग्रहीत Markdown नोट्स। टैगिंग, ट्रैश/रिस्टोर और निर्यात का समर्थन करता है।
प्रकार परिभाषाएँ
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
}ऑपरेशन
notes
नोट्स खोजें (शीर्षक + सामग्री)। सभी गैर-ट्रैश नोट्स सूचीबद्ध करने के लिए query खाली छोड़ें।
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
किसी query से मेल खाने वाले नोट्स की गणना करें।
query GetNoteCount($query: String!) {
noteCount(query: $query)
}note
ID द्वारा एकल नोट फेच करें।
query GetNote($id: ID!) {
note(id: $id) { id title content createdAt updatedAt trashed tags { id name } }
}saveNote
नोट बनाएँ या अपडेट करें। बनाने के लिए खाली id पास करें; अपडेट के लिए मौजूदा id पास करें।
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
किसी query से मेल खाने वाले नोट्स को ट्रैश में ले जाएँ।
mutation TrashNotes($query: String!) {
trashNotes(query: $query)
}restoreNotes
किसी query से मेल खाने वाले ट्रैश किए गए नोट्स को रिस्टोर करें।
mutation RestoreNotes($query: String!) {
restoreNotes(query: $query)
}deleteNotes
किसी query से मेल खाने वाले ट्रैश किए गए नोट्स को स्थायी रूप से हटाएँ। केवल पहले से ट्रैश किए गए नोट्स पर काम करता है।
mutation DeleteNotes($query: String!) {
deleteNotes(query: $query)
}exportNotes
किसी query से मेल खाने वाले नोट्स (टैग सहित) को backup/transfer के लिए JSON स्ट्रिंग के रूप में क्रमबद्ध करें।
mutation ExportNotes($query: String!) {
exportNotes(query: $query)
}