glennreyes/graphpack

GraphQL import throws

Aperta

#42 aperta il 13 mar 2019

 (1 commento) (0 reazioni) (0 assegnatari)JavaScript (78 fork)batch import
bughelp wanted

Metriche repository

Star
 (1973 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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?

Guida contributor