USER MANUALS

イントロスペクション

Denodo GraphQL サービスで使用可能なクエリと型を検出するための方法として、 GraphQL イントロスペクションシステム もあります。

たとえば、GraphQL の order 型に使用可能なフィールドを確認する場合は、以下のようにイントロスペクションシステムに POST リクエストを送信します。

Introspection request for 'order' type

order 型に関するイントロスペクションリクエスト

order 型に関するイントロスペクション応答
{
   "data": {
       "__type": {
           "name": "order",
           "kind": "OBJECT",
           "description": null,
           "fields": [
               {
                   "name": "order_id",
                   "type": {
                        "name": "Int",
                        "kind": "SCALAR"
                    }
               },
               {
                   "name": "cust_id",
                   "type": {
                        "name": "Int",
                        "kind": "SCALAR"
                    }

               },
               {
                   "name": "total_price",
                   "type": {
                        "name": "BigInteger",
                        "kind": "SCALAR"
                     }
               },
               {
                   "name": "order_desc",
                   "type": {
                        "name": "String",
                        "kind": "SCALAR"
                     }
               },
               {
                   "name": "order_date",
                   "type": {
                       "name": "Timestamp",
                       "kind": "SCALAR"
                     }
               },
               {
                   "name": "last_updated_time",
                   "type": {
                       "name": "Timestamp",
                       "kind": "SCALAR"
                     }
               },
               {
                   "name": "order_detail",
                   "type": {
                       "name": null,
                       "kind": "NON_NULL"
                     }
               }
           ]
       }
   }
}
Add feedback