apollographql / apollographql/fullstack-tutorial

Downloaded introspectionSchema.json File is not completed

Open
#195 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.2k
Forks
808
PR merge metrics
No merged PRs in 30d

Description

for instance, I will use
https://apollo-fullstack-tutorial.herokuapp.com/graphql

when I manually download the schema from the playground (I mean the right side Schema button and then pressed on download btn ) to use it for an android client the introspectionSchema.json that I got has many errors

when I use the JSON file to generate models always got this error
****Failed to locate schema root node `__schema`**
also if I put the whole JSON object inside these
`
{
"data": {
"__schema": { here }
}
}`

then i got this error
****Required value 'types_' (JSON name 'types') missing at $.data.__schema**

so i realised that the downloaded json file is uncompleted for some reason

Contributor guide

No contributing guide indexed for this repository

Research direction

Open the Apollo Playground at https://apollo-fullstack-tutorial.herokuapp.com/graphql and reproduce the Schema download using introspectionSchema.json. Compare the downloaded document with the reported errors and verify that the result contains data.__schema.types, so it can be used for Android model generation without adding a wrapper manually.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, graphql
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.