glennreyes/graphpack

GraphQL import throws

オープン

#42 opened on 2019/03/13

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (78 件のフォーク)batch import
bughelp wanted

Repository metrics

Stars
 (1,973 個のスター)
PR merge metrics
 (30d に merged 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?

コントリビューターガイド