-
Notifications
You must be signed in to change notification settings - Fork 726
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
Guidance on shared fragments #3284
Comments
hmm, is there a 3rd option to have the fragments in their own target 🤔 |
Hey Jim, sorry we missed this earlier. I haven't tried this myself yet but I wonder if you could use the |
@calvincestari we actually do use |
What would you say to an option that could add import statements to generated operations, or event just certain sources? |
My preference would be option 2 in this case.
What does that config end up looking like is the question. |
Myself and a colleague of mine have been working on this, and may open a PR soon. |
Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo iOS usage and allow us to serve you better. |
Question
Hello, we're looking for some guidance on how to achieve shared fragments.
Taking this as an example, there's 3 packages that all contain operations. They use the same shared schema package, but 2 of the 3 packages want to share fragments.
Currently I only know 2 options:
The text was updated successfully, but these errors were encountered: