glennreyes/graphpack

GraphQL import throws

开放

#42 创建于 2019年3月13日

 (1 条评论) (0 个反应) (0 位负责人)JavaScript (78 个派生)batch import
bughelp wanted

仓库指标

星标
 (1,973 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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?

贡献者指南