Skip to content

Allow updating custom additional types #593

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

Merged

Conversation

smyrick
Copy link
Contributor

@smyrick smyrick commented Feb 3, 2020

📝 Description

As discussed in other PRs #587 and #585 we can allow developers to have more customization of the schema by allowing them to add additional types of their own without having to add it to the schema directly. What they do with this feature will be up to them, but from a library perspective it is not bad feature to support.

🔗 Related Issues

See my comment here for more details: #585 (comment)

As dicussed in other PRs ExpediaGroup#587 and ExpediaGroup#585 we can allow developers to have more customization of the schema by allowing them to add additional types of their own without having to add it to the schema directly. What they do with this feature will be up to them, but from a libray perspective it is not bad feature to support.
@smyrick smyrick added type: enhancement New feature or request changes: minor Changes require a minor version labels Feb 3, 2020
@smyrick
Copy link
Contributor Author

smyrick commented Feb 3, 2020

Actually this may not allow for someone to override the get method properly because they don't have access to all the generate* methods.

Do we instead need to make this method open?

@dariuszkuc
Copy link
Collaborator

Yes. In order to allow easy extension generateAdditionalTypes should be open.

@dariuszkuc dariuszkuc merged commit 8760915 into ExpediaGroup:master Feb 3, 2020
@smyrick smyrick deleted the protected-generate-additional-types branch February 3, 2020 21:29
@ghost
Copy link

ghost commented Feb 3, 2020

Does this need an updated doc or sample?

@smyrick
Copy link
Contributor Author

smyrick commented Feb 3, 2020

@EXPErdelfavero Yes, it does. Thank you for keep on top of that for us. We need to get better at checking docs, especially if there is a new feature label.

smyrick pushed a commit to smyrick/graphql-kotlin that referenced this pull request Feb 3, 2020
Added new features in ExpediaGroup#593 that we did not document
dariuszkuc pushed a commit that referenced this pull request Feb 7, 2020
Added new features in #593 that we did not document
dariuszkuc pushed a commit to dariuszkuc/graphql-kotlin that referenced this pull request Aug 5, 2022
* Allow updating custom additional types

As dicussed in other PRs ExpediaGroup#587 and ExpediaGroup#585 we can allow developers to have more customization of the schema by allowing them to add additional types of their own without having to add it to the schema directly. What they do with this feature will be up to them, but from a libray perspective it is not bad feature to support.

* Make function open
dariuszkuc pushed a commit to dariuszkuc/graphql-kotlin that referenced this pull request Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changes: minor Changes require a minor version type: enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

2 participants