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
And schemas looking like this: user-schema.graphql
# import Post from "../../generated/graphcool.graphql"typeUser {
id: ID!email: String!name: String!posts: [Post!]!
}
typeQuery {
me: User
}
...
My main schema ended up being empty (except for the import statements):
complete-schema.graphql
# import Query.*, Mutation.* from './resolvers/Post/post-schema.graphql'# import Query.*, Mutation.* from './resolvers/User/user-schema.graphql'
Which leads to an Syntax Error: Unexpected <EOF>.
It only works if I change the schema to: complete-schema-working.graphql
# import Query.*, Mutation.* from './resolvers/Post/post-schema.graphql'# import Query.*, Mutation.* from './resolvers/User/user-schema.graphql'# We need at least one 'real' definition or things go south ;)typeDummy {
dummy: String!
}
It would be great if we could use files that consist only of import statements without having to add dummy-types.
The text was updated successfully, but these errors were encountered:
I've tried to split my whole schema to be able to put the schema-parts and corresponding resolvers together.
I ended up with a file structure like this:
And schemas looking like this:
user-schema.graphql
My main schema ended up being empty (except for the import statements):
complete-schema.graphql
Which leads to an
Syntax Error: Unexpected <EOF>
.It only works if I change the schema to:
complete-schema-working.graphql
It would be great if we could use files that consist only of import statements without having to add dummy-types.
The text was updated successfully, but these errors were encountered: