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

[FerryGenerator] Feature Request: Single generated folder with .graphql files in multiple locations. #559

Open
Icedude907 opened this issue Dec 17, 2023 · 0 comments

Comments

@Icedude907
Copy link

Icedude907 commented Dec 17, 2023

Hey there, thanks for making the project.
I have a folder structure like so;

lib/gql/
|- schema/
| |- <Schema Files>.graphql
|- <Query & Mutatation Documents>.graphql

The schema is in a git submodule, making it tricky to move up the tree. 

Currently when running the generator on the project I get the following file tree:

lib/gql/
|- schema/
| |- __generated__/
|- __generated__/

Ideally I'd like to not have these two separate generated folders, either just everything flattened into a single folder, or a nested folder inside the __generated__ directory like so:

lib/gql/
|- schema/*.graphql
|- <Query & Mutatation Documents>.graphql
|- __generated__/
  |- schema/
  | |- schema.g.dart
  |- query.g.dart

Is this a possibility?
Thanks again.

Edit

I've restructured my project so that all my graphql files are in the same folder (I just copy the schema between repositories rather than sharing a submodule) so I no longer have this issue. That being said I think this is still a valid feature request.

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

No branches or pull requests

1 participant