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

Types with same name differents according to schema #1153

Open
remi-vasco opened this issue Jan 18, 2024 · 0 comments
Open

Types with same name differents according to schema #1153

remi-vasco opened this issue Jan 18, 2024 · 0 comments

Comments

@remi-vasco
Copy link

Q A
Bug report? no
Feature request? yes
BC Break report? no
RFC? no
Version/Branch 1.0.0

Hello all,

I have my private API, and I would like to create a API for my partners.
The Two api does not have the same deprecation policies: for the private I can introduce breaking change because in the same release I am updating the webapp accordingly.

But for the partner I need to have an extended deprecation policy, up to 3 months.

So, I created a Partner schema with some requests and mutations. that's fine and meet my goals.

But If the two schemas shares the same type (i.e. User) I don't know how to configure GraphqlBundle to tell that types for default schema are in directory config/graphql/types/default and types for schema partner are in directory config/graphql/types/partner, so my internal type can evoluate differently

In fact, I think it is not possible for now.

Any ideas of how I can do that ? And if not, Is it a feature easy for me to implement as a PR ?

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

1 participant