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

feat(config-providers): add initial example of configuration providers #4

Merged
merged 1 commit into from
May 27, 2023

Conversation

real34
Copy link
Member

@real34 real34 commented May 25, 2023

This MR adds a new example aimed at explaining how to register a configuration provider.

The configuration provider is registered from a GraphQL module to illustrate how to access it (with JSDoc typing) from a contextEnhancer.

The provider has 3 type of values:

  • mandatory static value
  • optional static value (with default)
  • dynamic value per request, to illustrate common practices of slowValuesOnEachRequest

@real34 real34 force-pushed the config-provider-initial-example branch from e039c9e to a088f59 Compare May 25, 2023 16:34
@real34 real34 closed this May 25, 2023
@real34 real34 reopened this May 25, 2023
@real34 real34 merged commit 81d77d5 into main May 27, 2023
@real34 real34 deleted the config-provider-initial-example branch May 27, 2023 06:14
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

Successfully merging this pull request may close these issues.

2 participants