Skip to content

GraphQL फ़ॉर्मेटर

GraphQL क्वेरी, म्यूटेशन और स्कीमा को फ़ॉर्मेट, वैलिडेट और मिनिफ़ाई करें, सिंटैक्स त्रुटियाँ सटीक जगह पर। आपके डिवाइस पर चलता है।

कोई अपलोड नहीं
query GetUser($id: ID!, $first: Int = 10) {
  user(id: $id) {
    id
    name
    ...Avatar
    posts(first: $first) {
      edges {
        node {
          id
          title
          createdAt
        }
      }
    }
  }
}

fragment Avatar on User {
  avatar(size: 64) {
    url
  }
}

✓ Valid GraphQL · 1 operation, 1 fragment

GraphQL फ़ॉर्मेटर कैसे इस्तेमाल करें

  1. 1GraphQL फ़ॉर्मेटर खोलें। यह आपके ब्राउज़र में चलता है, साइन-अप की ज़रूरत नहीं।
  2. 2अपना इनपुट टाइप या पेस्ट करें।
  3. 3नतीजा कॉपी या डाउनलोड करें।

सवाल

Does it validate against my schema?

It checks syntax only (queries, mutations, fragments and SDL schemas). No schema or endpoint is needed.

Is anything sent to a server?

No. Formatting uses the reference graphql-js parser in your browser.

What does minify do?

It strips whitespace, commas and comments that GraphQL ignores, keeping the query identical in meaning.

और टूल