Sık kullanılanlar
Ö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 {
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
}İşlemler
addFavoriteFolder
Hızlı erişim için klasörü yer imlerine ekler. Tüm yer imli klasörlerin güncel listesini döndürür.
# Register a favorite folder and return the whole list.
mutation addFavoriteFolder($rootPath: String!, $fullPath: String!) {
addFavoriteFolder(rootPath: $rootPath, fullPath: $fullPath) { rootPath fullPath alias }
}removeFavoriteFolder
Yer imli klasörü kaldırır. Kalan klasörlerin güncel listesini döndürür.
# Remove the favorite folder identified by `fullPath` and return the
# whole list.
mutation removeFavoriteFolder($fullPath: String!) {
removeFavoriteFolder(fullPath: $fullPath) { rootPath fullPath alias }
}setFavoriteFolderAlias
Yer imli klasörün görünen takma adını ayarlar veya günceller. Temizlemek için boş dize geçin.
# 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 }
}favoriteFolders
Kaydedilmiş sık kullanılan klasörleri ve takma adlarını listeler.
# List all favorite folders.
query favoriteFolders {
favoriteFolders { rootPath fullPath alias }
}