You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're using a local schema in SDL, instead of puling in schema.json through introspection. The file (schema.graphql) is added to the folder path "./src/main/graphql/com/android/data/", in relation to the Android project directory.
On build we're getting the error: "ApolloGraphQL: cannot find schema.[json | sdl]".
One thought is maybe the schema is mal-formatted, however the same schema.graphql file works fine on iOS. Seems like there may be some unexpected handling of local SDL schema on Android side? Our server does not allow introspection, so this is the only way for us to setup graphql.
The text was updated successfully, but these errors were encountered:
RLEE0731
changed the title
Using local schema.graphql, getting error "ApolloGraphQL: cannot find schema.[json | sdl]"
Using local schema SDL, getting error "ApolloGraphQL: cannot find schema.[json | sdl]"
Apr 29, 2021
RLEE0731
changed the title
Using local schema SDL, getting error "ApolloGraphQL: cannot find schema.[json | sdl]"
Using local schema.graphql, getting error "ApolloGraphQL: cannot find schema.[json | sdl]"
Apr 29, 2021
You'll have to rename your schema.graphql file to schema.sdl. This is so that it's not confused with other *.graphql operation files. Alternatively, you can also use schema.graphqls starting with version 2.5.5
We're using a local schema in SDL, instead of puling in schema.json through introspection. The file (schema.graphql) is added to the folder path "./src/main/graphql/com/android/data/", in relation to the Android project directory.
On build we're getting the error: "ApolloGraphQL: cannot find schema.[json | sdl]".
One thought is maybe the schema is mal-formatted, however the same schema.graphql file works fine on iOS. Seems like there may be some unexpected handling of local SDL schema on Android side? Our server does not allow introspection, so this is the only way for us to setup graphql.
The text was updated successfully, but these errors were encountered: