-
Notifications
You must be signed in to change notification settings - Fork 118
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
Define schemas in a separate package #604
Comments
Hi! Just for clarification: You want to be able to do something like
Is this correct? I'll look into supporting this, should be quite easy, unless there is an unexpected issue with built_value serialization |
That is correct, yes. |
a draft PR is available at #606. still needs a cleanup and tests, but you can already try it out by using ferry_generator:
git:
url: https://github.com/gql-dart/ferry.git
path: packages/ferry_generator
ref: external_schema_import replace the reference to the schema in build.yaml from schema: <current_package>|lib/schema/schema.graphql to schema: <external_dep_packaage>|lib/schema/schema.graphql |
this was released in ferry_generator 0.12.0 |
Hello!
For the sake of sharing code between backend and frontend, I'd like to define my schema files outside of the package that uses ferry_generator.
Would it be possible to support in the
build.yaml
aschema
that comes from a different package?The text was updated successfully, but these errors were encountered: