API রেফারেন্স

প্রিয়

সমর্থনের জন্য app.capabilities এবং অনুমতির জন্য app.access ও হোস্টের অনুমতি দেখুন। ব্যবহারের আগে নমুনা মান বদলান।

টাইপ ডেফিনিশন

graphql
type Mutation {
  addFavoriteFolder(rootPath: String!, fullPath: String!): [FavoriteFolder!]!
  removeFavoriteFolder(fullPath: String!): [FavoriteFolder!]!
  setFavoriteFolderAlias(fullPath: String!, alias: String!): [FavoriteFolder!]!
}

type Query {
  favoriteFolders: [FavoriteFolder!]!
}

type FavoriteFolder {
	rootPath: String!
	fullPath: String!
	alias: String
}

অপারেশন

mutation

addFavoriteFolder

দ্রুত প্রবেশের জন্য ফোল্ডার বুকমার্ক করে। সব বুকমার্ক করা ফোল্ডারের আপডেট তালিকা দেয়।

graphql
# Register a favorite folder and return the whole list.
mutation addFavoriteFolder($rootPath: String!, $fullPath: String!) {
  addFavoriteFolder(rootPath: $rootPath, fullPath: $fullPath) { rootPath fullPath alias }
}
mutation

removeFavoriteFolder

বুকমার্ক করা ফোল্ডার সরায়। বাকি ফোল্ডারের আপডেট তালিকা দেয়।

graphql
# Remove the favorite folder identified by `fullPath` and return the
# whole list.
mutation removeFavoriteFolder($fullPath: String!) {
  removeFavoriteFolder(fullPath: $fullPath) { rootPath fullPath alias }
}
mutation

setFavoriteFolderAlias

বুকমার্ক করা ফোল্ডারের প্রদর্শিত ছদ্মনাম ঠিক বা আপডেট করে। মুছতে খালি স্ট্রিং দিন।

graphql
# Set the favorite folder's display alias and return the whole list; error if the favorite does not exist.
mutation setFavoriteFolderAlias($fullPath: String!, $alias: String!) {
  setFavoriteFolderAlias(fullPath: $fullPath, alias: $alias) { rootPath fullPath alias }
}
query

favoriteFolders

সংরক্ষিত প্রিয় ফোল্ডার ও তাদের ছদ্মনাম তালিকাভুক্ত করে।

graphql
# List all favorite folders.
query favoriteFolders {
  favoriteFolders { rootPath fullPath alias }
}