Truy vấn introspection chi tiết trả về tên field kèm phân loại. Cho schema (type → map field → kiểu, kiểu = "scalar" hoặc tên type khác) và tên type, in mảng JSON các object {"name":field,"kind":"SCALAR"|"OBJECT"} theo thứ tự field trong schema. Type không có → null.
Input:
{"User":{"id":"scalar","posts":"Post"},"Post":{"title":"scalar"}}
User
Output:
[{"name":"id","kind":"SCALAR"},{"name":"posts","kind":"OBJECT"}]
Dòng 1: schema JSON (type → map field → kiểu). Dòng 2: tên type cần introspect.
Kiểu bằng scalar (không phân biệt hoa thường) → SCALAR; ngược lại OBJECT.
Mảng {"name":...,"kind":"SCALAR"|"OBJECT"} theo thứ tự field, hoặc null.
Ví dụ:
Đầu vào:
{"User":{"id":"scalar","posts":"Post"},"Post":{"title":"scalar"}}
User
Đầu ra:
[{"name":"id","kind":"SCALAR"},{"name":"posts","kind":"OBJECT"}]Giải thích:
Đang tải editor...