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?

貢獻者指南