graphpack icon indicating copy to clipboard operation
graphpack copied to clipboard

GraphQL import throws

Open bernharduw opened this issue 6 years ago • 1 comments
trafficstars

When importing other .graphql files from schema.graphql, building the server fails.

Minimal example in Codesandbox: https://codesandbox.io/s/q848mq9o1w

schema.graphql:

# import Post from "posts.graphql"

type Query {
  posts: [Post]
}

posts.graphql:

type Post {
  id: ID!
  text: String!
  tags: [String]
}

Output on the terminal: image

I tried with v1.0.2 up to 1.0.8, also with "./posts.graphql", but without success. Any idea?

bernharduw avatar Mar 13 '19 12:03 bernharduw

Thanks @bernharduw! This seems related to https://github.com/prisma/graphql-import/issues/267#issuecomment-462808292. Any bugfixes on this highly appreciated.

glennreyes avatar Mar 29 '19 13:03 glennreyes