Title
h

henrique

03/21/2019, 9:05 PM
How are you doing to seed enums? e.g.
# enums.graphql
enum PlaceCategory {
  LANDSCAPE
  FOOD
  COFFEE
}

# types.graphql
type Place {
  categories: [PlaceCategory!]!
}

// seed.js
await prisma.createPlace({
  categories: ['FOOD']
})
This doesn’t work for me I get the follow error:
Error: Variable '$data' expected value of type 'PlaceCreateInput!'
Also, it will be awesome if you can limit the conversation to a single channel 🙏
h

henrique

03/22/2019, 10:27 AM
@Harshit yes definitely, going to use more the forum, it’s easier to find stuff later