glennreyes/graphpack

GraphQL import throws

Open

#42 创建于 2019年3月13日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)JavaScript (1,991 star) (88 fork)batch import
bughelp wanted

描述

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?

贡献者指南