Issue there is that I don’t want to reset persisted data if I kill local container.
What I really need is a conditional check.
seededDataExists() ? echo ‘moving on’ : prisma seed;
Originally thinking I could implement a check in node or bash, but issue there is that if seeded data changes, then the data check needs to change. Not a deal breaker — just not very clean.
alechp
08/22/2018, 6:29 PM
I think cleaner version would be to implement snapshotting on seed.graphql and then use that as basis of comparison. Just more work than I want to do for cleanup tbh