ChilliCream / ChilliCream/graphql-platform
Ability to configure scalar serializers in code.
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 5.8k
- Forks
- 810
- Avg merge
- 15h 39m
- Merged PRs (30d)
- 98
Description
Is your feature request related to a problem?
I'm using HotChocolate + Strawberry Shake combo to build ecosystem of microservices. On the server side I have own library, distributed by NuGets, that have plenty of extra scalar types. On the client side I wrote corresponding serializer to and from Runtime type, but to actually use them within autogenerated client I need to manually add them all to schema.extensions.graphql file and I need to do this for each and every client in each and every project.
The solution you'd like
IServiceCollection.AddSerializer<T>() method should be enough to register serializer, no graphql schema extensions should be needed.
-- OR --
There should be ability to define additional schema.global.extensions.graphql that would be used for each and every client in the project. That way I can provide that file from NuGet package as well.
Product
Strawberry Shake
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing Strawberry Shake's generated-client serializer registration and the IServiceCollection.AddSerializer() entry point, then compare how schema.extensions.graphql is consumed. Done means serializers from code or a project-wide schema.global.extensions.graphql can be reused by every client without per-client schema edits; review existing registration tests before choosing the approach.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- developer-experience
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100