Handytool
डेवलपरमुफ़्तस्थानीय रूप से चलता है

GraphQL formatter

GraphQL queries, mutations, और schemas को pretty-print और validate करें — privately आपके ब्राउज़र में।

.graphql.gql
GraphQL input
0 पंक्तियाँ0 bytes
Formatted query
0 पंक्तियाँ0 bytes

GraphQL formatter के बारे में

Handytool का GraphQL formatter किसी भी GraphQL document को parse करता है — queries, mutations, subscriptions, या SDL schema definitions — official graphql.js parser का उपयोग करके, फिर consistent indentation के साथ re-emit करता है। Validate button confirm करता है कि document बिना render किए parse होता है। सब कुछ locally चलता है, इसलिए यह safe है internal API queries या proprietary schemas को format करने के लिए।

GraphQL formatter की विशेषताएँ

  • 01

    Official graphql.js parser

    वही parser जो GraphQL reference implementation ship करता है। Errors exact line और column के साथ आते हैं, और formatting canonical है।

  • 02

    Queries, mutations, और SDL

    Operation documents और schema definitions दोनों काम करते हैं। Type definitions, directives, और descriptions cleanly round-trip करते हैं।

  • 03

    बिना चलाए validate करें

    Validate सिर्फ confirm करता है कि document parse होता है। यह query को execute नहीं करता, एक schema की जरूरत नहीं है, और नेटवर्क calls नहीं बनाता।

GraphQL formatter अक्सर पूछे जाने वाले प्रश्न

क्या यह एक schema के विरुद्ध validate करता है?
नहीं — सिर्फ syntactic validation। Schema-aware validation को target schema की जरूरत है field names और argument types को compare करने के लिए; यह tool सिर्फ confirm करता है कि document parse होता है।
क्या यह मेरे comments को preserve करेगा?
GraphQL comments (lines starting with #) को parser द्वारा strip किया जाता है। Documentation को keep करने के लिए, type और field definitions पर """description""" string literals का उपयोग करें — वे cleanly round-trip करते हैं।
यह कौन सा GraphQL spec version support करता है?
Current October 2021 spec, including OneOf input objects और @specifiedBy directive जैसी features।
क्या query कहीं upload होती है?
नहीं। graphql.js parser पूरी तरह आपके browser में चलता है — आपकी operations आपके device पर stay करती हैं।

संबंधित टूल

डेवलपर

अन्य टूल्स देखें

सभी टूल