glennreyes/graphpack

GraphQL import throws

Aberta

#42 aberto em 13 de mar. de 2019

 (1 comentário) (0 reação) (0 responsável)JavaScript (78 forks)batch import
bughelp wanted

Métricas do repositório

Stars
 (1.973 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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?

Guia do colaborador