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.
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:
It goes to every gql file and remove
createdAt
andupdatedAt
fields. The space before those two is because we do not want to strip out the arguments with the same name.