के साथ schema.json जेनरेट करें मुझे एक schema.json फ़ाइल बनाने में समस्याएं आ रही हैं जिन्हें किसी त्रुटि में चलने के बिना बेबेल-रिले-प्लगइन के साथ पार्स किया जा सकता है। रिले के उदाहरण फ़ोल्डर में schema.json फ़ाइल को शामिल करने के लिए, मैंने क्वेरी को कॉपी करने की कोशिश की है, लेकिन मुझे यह सही नहीं लगता है। मैं बैकएंड के रूप में Laravel का उपयोग कर रहा हूं। क्या यह कुछ है जिसे मैं GraphiQL के माध्यम से पूरा कर सकता हूं या ग्राफ़क्यूएल एंडपॉइंट पर अनुरोध भेज रहा हूं और प्रतिक्रिया को सहेज सकता हूं?GraphiQL या GraphQL endpoint
त्रुटि schema.json फ़ाइल को पार्स करने का प्रयास कर से होने वाली:
Cannot read property 'reduce' of undefined while parsing file: /Users/username/Sites/Homestead/Code/ineedmg-graphql/resources/assets/js/app.js
अंतिम प्रयास GraphiQL का उपयोग कर:
{
__schema {
queryType {
name
},
types {
kind,
name,
description,
fields {
name,
description,
type {
name,
kind,
ofType {
name
description
}
}
isDeprecated,
deprecationReason,
},
inputFields {
name
description
}
interfaces {
kind
name
description
},
enumValues {
name
description
isDeprecated
deprecationReason
}
},
mutationType {
name
},
directives {
name,
description,
onOperation,
onFragment,
onField,
args {
name
description
defaultValue
}
}
}
}