- 🇧🇪Belgium BramDriesen Belgium 🇧🇪
I assume there is some overlap here with #3042995: Convert votes into entities → about the vote entity. I guess it makes sense to land that one first.
I have no objections to add this as a submodule. However I would like to:
- See some tests for this as well
- See this rebased for 2.0.x
- See a MR for this.
- See documentation for this. This proposed code does not work with graphql4.
It does work with the pre-2.0 Poll and gql3.
Looking at the code, I'm guessing it's going to be better to use schema extensions and data producers rather than creating its own Entity and adding fields to polls like the current implementation does.
It'd be nice to be compatible with graphql_core_schema as well (there's core_compose as well, but my project is using core_schema).