Introspection

Jamf Protect Documentation

Solution
Application
Content Type
Technical Documentation
Utilities & Services
ft:locale
en-US

You can use introspection to query the API schema directly and learn about supported queries.

The following examples show how you can use introspection to learn about the Jamf Protect API

Introspection

Description

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

Get all supported query and mutation field names and descriptions

{
 __schema {
   types {
     name
  }
 }
}

Return all object types in the GraphQL schema

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

Return all the supported fields in the Computer type with their name and description

For more information about introspection, see Introspection on the GraphQL Foundation website.