內省

Jamf Protect 說明文件

Solution
Application
Content Type
技術說明文件
Utilities & Services
ft:locale
zh-TW

您可以使用內省來直接查詢 API 結構描述並瞭解支援的查詢。

下列範例展示如何使用內省來瞭解 Jamf Protect API

內省

說明

{
 __schema {
 queryType {
   fields{
     name
     description
 }
 }
 mutationType {
   fields {
     name
     description
   }
  }
 }
}

取得所有支援的查詢和變動欄位名稱和說明

{
 __schema {
   types {
     name
  }
 }
}

傳回 GraphQL 結構描述中的所有物件類型

{
 __type(name: "Computer") {
    name
    kind
  fields{
   name
   description
  }
 }
}

傳回電腦類型中所有受支援的欄位及其名稱和說明

有關內省的更多資訊,請參閱 GraphQL 基金會網站上的 Introspection (內省)。