2015-11-03 21 views
6

Bir hataya girmeden babel-relay-plugin ile ayrıştırılabilen bir schema.json dosyası oluşturma sorunları yaşıyorum. Rölenin örnek klasöründe bulunan schema.json dosyasına baktığımda, sorguyu GraphiQL'de kopyalamaya çalıştım ama doğru göremiyorum. Arka uç olarak Laravel kullanıyorum. Bu, GraphiQL üzerinden yapabileceğim veya GraphQL son noktasına bir istek göndererek ve yanıtı kaydederek yapabileceğim bir şey mi? GraphiQL kullanarakGraphiQL veya GraphQL uç noktası ile schema.json oluştur

Cannot read property 'reduce' of undefined while parsing file: /Users/username/Sites/Homestead/Code/ineedmg-graphql/resources/assets/js/app.js 

Son deneme: schema.json dosyasını ayrıştırmak çalışırken meydana gelen

hata

{ 
    __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 
     } 
    } 
    } 
} 

cevap

İlgili konular