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

Possibility to add exluded fields #35

Open
homoky opened this issue Jun 5, 2020 · 1 comment
Open

Possibility to add exluded fields #35

homoky opened this issue Jun 5, 2020 · 1 comment

Comments

@homoky
Copy link

homoky commented Jun 5, 2020

Hey,

it would be great if it would be possible to exclude some fields. For example ID or date fields that make conflicts with snapshots.

Now I solve it with bash script:

find ./tests/ -name *.gql -type f -exec sed -i '' -e "s/  updatedAt//" {} \;
find ./tests/ -name *.gql -type f -exec sed -i '' -e "s/  createdAt//" {} \;

It goes to every gql file and remove createdAt and updatedAt fields. The space before those two is because we do not want to strip out the arguments with the same name.

@BottlecapDave
Copy link

I would also find this useful, even more if it supported excluding fields which were more complex (e.g. an object)

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

2 participants