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

schema.schema.gql.dart not generated - "possibleTypesMap" missing #594

Open
simplenotezy opened this issue Apr 9, 2024 · 3 comments
Open

Comments

@simplenotezy
Copy link

I am following the example repos, but with my own GraphQL endpoint. I notice that when I run: get-graphql-schema http://localhost:8787 > lib/common/domain/schema.graphql

And then then buildrunner: dart run build_runner build --delete-conflicting-outputs, it generates all files, except the schema.schema.gql.dart file:

image

(it even creates the schema.schema.gql.g.dart file?)

What am I missing here?

@knaeckeKami
Copy link
Collaborator

There's an old bug that occurs when a schema has no inputs, no enums and no scalars which causes this - does your schema maybe look like this?

@simplenotezy
Copy link
Author

Yes, that was the case @knaeckeKami thanks! It started working suddenly once I started evolving the defined schema. Thanks

@adamhb123
Copy link

I'm having this issue as well now - it only happens after adding a JsonSerializer for the JSON scalar type. Currently, I am just setting possibleTypesMap to an empty map ( {} ). Is this an appropriate solution? I'm not quite sure what it is used for but my queries seem to work just fine without it.

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

3 participants