Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter-variable in .graphql-files yields to build fail in Xcode #108

Closed
fabriziof opened this issue Jul 12, 2017 · 1 comment
Closed

Filter-variable in .graphql-files yields to build fail in Xcode #108

fabriziof opened this issue Jul 12, 2017 · 1 comment

Comments

@fabriziof
Copy link

Hi,

When I include a graphql-query that uses a filter-variable in my project, the project cannot build.
For example, the following query includes a variable of type 'UserFilter':

query User($filter: UserFilter!) { allUsers(filter: $filter){ id } }

When building the project, Apollo creates the API-file that now includes all Filter-types for every type in my schema. For every struct that represents a filter, the following error shows up:

apolloerror

@martijnwalraven
Copy link
Contributor

This should be fixed in apollo-codegen 0.16.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants