prisma1 icon indicating copy to clipboard operation
prisma1 copied to clipboard

Seed from mutliple .graphql files

Open lewebsimple opened this issue 6 years ago • 4 comments

The prisma.yml.seed.import property can only accept one file.

I'd like to be able to modularize the seed import into multiple files by having the following in prisma.yml:

seed:
  import:
  - ./seed/a.graphql
  - ./seed/b.graphql

I tried using # import statement with graphql-import without success.

Are there any ways around this?

Thanks for maintaining such an amazing project!

lewebsimple avatar Nov 03 '18 20:11 lewebsimple

bump!

b33son avatar Dec 09 '18 18:12 b33son

This would be a big help, it would allow us to separate static data from test data and put them into separate files.

pdeak avatar Jan 12 '19 06:01 pdeak

Has there been any headway on this? We would love to split our seed files into the specific actions/apps they relate, instead of having one long file

jameshood118 avatar Dec 20 '19 16:12 jameshood118

Definitely bump

Markus357 avatar Feb 24 '20 23:02 Markus357