ardatan/graphql-import

Import is broken in latest release

Closed this issue · 0 comments

The last release seems to be broken. I had a database schema with a Post type and was referencing it from my application schema like so:

# import Post from "../database/schema.graphql"

type Query {
  feed: [Post!]!
  post(id: ID!): Post
}

type Mutation {
  createPost(description: String!, imageUrl: String!): Post!
  deletePost(id: ID!): Post
}

When running the app, I got the error message that the Post type was not found in any of the schemas.

Rolling back to version 0.1.5 fixed the problem.