ChilliCream / ChilliCream/graphql-platform

Rename the root Query, Mutation, and Subscription elements

Open
#8,939 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

🌶️ hot chocolate Area: Fusion
Dominant language
C#
Stars
5.8k
Forks
810
Avg merge
15h 39m
Merged PRs (30d)
98

Description

Product

Hot Chocolate

Is your feature request related to a problem?

I'm trying to use Fusion to merge an external graph (run by Hasura) that defines root elements as query_root, mutation_root, etc.

Fusion cannot merge the definitions of the graphs because the root elements in Hasura and Hot Chocolate are not the same. The Hasura graphs can't be changed (existing deployments), so I wanted to change the Hot Chocolate graphs to use the Hasura root element names.

I have tried everything and cannot get the exported schema to use query_root, mutation_root, etc.

The solution you'd like

I should be able to do something like [QueryObject(Name="query_root")] and have that reflected in the schema.

If that's not possible, maybe a way for Fusion to be able to rename root elements for external graphs?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points to inspect. Start by locating the Hot Chocolate schema-generation code for root Query, Mutation, and Subscription types; done means an agreed mechanism lets exported schemas use names such as query_root, mutation_root, and subscription_root for Fusion compatibility.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api, backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.