API संदर्भ

नोट्स

सुविधा समर्थन के लिए app.capabilities और प्राधिकरण के लिए app.access तथा होस्ट अनुमतियाँ जाँचें। उदाहरण कृत्रिम मान उपयोग करते हैं; कॉल करने से पहले पथ, ID, इनपुट और फ़िल्टर बदलें।

प्रकार परिभाषाएँ

graphql
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!
}

ऑपरेशन

mutation

createNote

दिए गए इनपुट से नोट बनाएँ और स्थायी रूप से सहेजें।

graphql
mutation createNote($input: NoteInput!) {
  createNote(input: $input) { id title content deletedAt createdAt updatedAt }
}
mutation

deleteNotes

क्वेरी से मेल खाते ट्रैश नोट स्थायी रूप से मिटाएँ। केवल पहले से ट्रैश में मौजूद नोट पर लागू होता है।

graphql
mutation deleteNotes($query: String!) {
  deleteNotes(query: $query) { affectedCount }
}
mutation

restoreNotes

क्वेरी से मेल खाते ट्रैश नोट बहाल करें।

graphql
mutation restoreNotes($query: String!) {
  restoreNotes(query: $query) { affectedCount }
}
mutation

saveFeedEntriesToNotes

मेल खाती फ़ीड प्रविष्टियाँ नोट के रूप में सहेजें और बने नोट ID लौटाएँ।

graphql
mutation saveFeedEntriesToNotes($query: String!) {
  saveFeedEntriesToNotes(query: $query)
}
mutation

trashNotes

क्वेरी से मेल खाते नोट ट्रैश में ले जाएँ।

graphql
mutation trashNotes($query: String!) {
  trashNotes(query: $query) { affectedCount }
}
mutation

updateNote

दिए गए इनपुट से सहेजा नोट अपडेट करें।

graphql
mutation updateNote($id: ID!, $input: NoteInput!) {
  updateNote(id: $id, input: $input) { id title content deletedAt createdAt updatedAt }
}
query

exportNotes

बैकअप/स्थानांतरण के लिए क्वेरी से मेल खाते नोट (टैग सहित) JSON स्ट्रिंग में सीरियलाइज़ करें।

graphql
query exportNotes($query: String!) {
  exportNotes(query: $query)
}
query

note

ID से एक नोट लें।

graphql
query note($id: ID!) {
  note(id: $id) { id title content deletedAt createdAt updatedAt }
}
query

noteCount

क्वेरी से मेल खाते नोट गिनें।

graphql
query noteCount($query: String!) {
  noteCount(query: $query)
}
query

notes

नोट के शीर्षक और सामग्री में खोजें। ट्रैश से बाहर के सभी नोट सूचीबद्ध करने के लिए query खाली छोड़ें।

graphql
query notes($query: String!, $offset: Int!, $limit: Int!) {
  notes(query: $query, offset: $offset, limit: $limit) { id title content deletedAt createdAt updatedAt }
}