-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Description
I upgraded the nxplorerJS project to v0.6.0 and got the following error
Syntax Error: Unexpected <EOF>
GraphQL request (2:1)
1:
2:
^
22 | // Create GraphQL Schema with all the pieces in place
23 | export const setupSchema = (): GraphQLSchema => {
> 24 | const schema = makeExecutableSchema({
25 | typeDefs,
26 | resolvers: resolvers,
27 | schemaDirectives: {
Here is the travis build reference https://travis-ci.org/ERS-HCL/nxplorerjs-microservice-starter/jobs/382177481
This appears to be related to #45 but when I added a dummy type the wildcard imports do not get imported properly
- Code reference: https://github.com/ERS-HCL/nxplorerjs-microservice-starter
- Main schema file: https://github.com/ERS-HCL/nxplorerjs-microservice-starter/blob/master/server/graphql/schema/main.graphql
- Schema setup file: https://github.com/ERS-HCL/nxplorerjs-microservice-starter/blob/master/server/graphql/setupSchema.ts
Code snippet
const typeDefs = importSchema('server/graphql/schema/main.graphql');
...
export const setupSchema = (): GraphQLSchema => {
const schema = makeExecutableSchema({
typeDefs,
resolvers: resolvers,
schemaDirectives: {
date: FormattableDateDirective,
auth: AuthDirective
}
});
main.graphql
# import * from "./starwars.graphql"
# import * from "./example.graphql"
# import * from "./user.graphql"
# import * from "./movie.graphql"
# import * from "./blog.graphql"
# import * from "./schema.graphql"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels