Notlar
Özellik desteği için app.capabilities, yetkilendirme için app.access ve ana makine izinlerini kontrol edin. Çağrıdan önce örnek değerleri değiştirin.
Tip Tanımları
type Mutation {
createNote(input: NoteInput!): Note!
deleteNotes(query: String!): ActionResult!
restoreNotes(query: String!): ActionResult!
saveFeedEntriesToNotes(query: String!): [ID!]!
trashNotes(query: String!): ActionResult!
updateNote(id: ID!, input: NoteInput!): Note!
}
type Query {
exportNotes(query: String!): String!
note(id: ID!): Note
noteCount(query: String!): Int!
notes(query: String!, offset: Int!, limit: Int!): [Note!]!
}
type ActionResult {
affectedCount: Int!
}
enum DataType {
DEFAULT
AUDIO
VIDEO
IMAGE
SMS
CONTACT
NOTE
FEED_ENTRY
CALL
PACKAGE
FILE
APP_FILE
DOC
}
scalar Instant
type Note {
id: ID!
title: String!
content: String!
deletedAt: Instant
createdAt: Instant!
updatedAt: Instant!
tags: [Tag!]!
}
input NoteInput {
title: String!
content: String!
}
type Tag {
id: ID!
name: String!
type: DataType!
count: Int!
}İşlemler
createNote
Verilen girdiden not oluşturur ve kalıcı kaydeder.
mutation createNote($input: NoteInput!) {
createNote(input: $input) { id title content deletedAt createdAt updatedAt }
}deleteNotes
Sorguya uyan çöpteki notları kalıcı siler. Yalnızca zaten çöpe atılmış notlarda çalışır.
mutation deleteNotes($query: String!) {
deleteNotes(query: $query) { affectedCount }
}restoreNotes
Sorguya uyan çöpteki notları geri yükler.
mutation restoreNotes($query: String!) {
restoreNotes(query: $query) { affectedCount }
}saveFeedEntriesToNotes
Eşleşen akış girdilerini not olarak kaydeder ve oluşturulan not kimliklerini döndürür.
mutation saveFeedEntriesToNotes($query: String!) {
saveFeedEntriesToNotes(query: $query)
}trashNotes
Sorguya uyan notları çöpe taşır.
mutation trashNotes($query: String!) {
trashNotes(query: $query) { affectedCount }
}updateNote
Verilen girdiden kayıtlı notu günceller.
mutation updateNote($id: ID!, $input: NoteInput!) {
updateNote(id: $id, input: $input) { id title content deletedAt createdAt updatedAt }
}exportNotes
Sorguya uyan notları (etiketler dahil) yedekleme/aktarım için JSON dizesi olarak serileştirir.
query exportNotes($query: String!) {
exportNotes(query: $query)
}note
Kimliğe göre tek not getirir.
query note($id: ID!) {
note(id: $id) { id title content deletedAt createdAt updatedAt }
}noteCount
Sorguya uyan notları sayar.
query noteCount($query: String!) {
noteCount(query: $query)
}notes
Notları (başlık + içerik) arar. Çöpte olmayan tüm notları listelemek için query değerini boş bırakın.
query notes($query: String!, $offset: Int!, $limit: Int!) {
notes(query: $query, offset: $offset, limit: $limit) { id title content deletedAt createdAt updatedAt }
}