-
Notifications
You must be signed in to change notification settings - Fork 163
Open
Description
Currently all operations need to be in the same file if you want to be able to share fragments.
I would be nice if we could specify a list of files in the derive arguments to specify shared things.
Something like:
#[graphql(
schema_path = "../schema.graphql",
query_path = "tests/common/operations/mutations.graphql",
shared_paths = "tests/common/operations/fragments.graphql, tests/common/operations/other.graphql",
response_derives = "Debug"
)]
itsrifat, grant0417, Dig-Doug, IgnisDa, afitzek and 3 more
Activity
NobbZ commentedon Mar 24, 2023
Can't we alternatively allow magic comments similar to the
import
statements in apollo + webpack?https://www.apollographql.com/docs/react/data/fragments/#importing-fragments-when-using-webpack
I would prefer such an explicit import in the GraphQL file over something only mentioned in the rust files.
DirkRusche commentedon Apr 3, 2025
Is #312 something that might help to resolve first, so this issue here becomes easier?
tomhoule commentedon Apr 3, 2025
I think it's the same issue.