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

Add multi-schema support #219

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Premwoik
Copy link

@Premwoik Premwoik commented Nov 26, 2021

Another try to add multi-schema support #91. This PR uses the solution proposed in PR #160 in a slightly changed form, based on the latest master.

Changes mostly concern:

  • Adding endpoint context support to the graphql_schema. This allows starting one gen_server instance (with ets tables) per schema.
  • Extending graphql API to use endpoint context.
  • Delivering endpoint context to all functions that need it.

I am curious if you are still interested in adding such functionality to the project.

@Premwoik Premwoik marked this pull request as ready for review November 29, 2021 13:22
Copy link

@chrzaszcz chrzaszcz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me and would be very useful in https://github.com/esl/MongooseIM, could you take a look @jlouis?

src/graphql_schema.hrl Outdated Show resolved Hide resolved
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