Does anyone know if it’s possible to create custom...
# orm-help
j
Does anyone know if it’s possible to create custom input types in your schema declaration for a yoga server? I have a mutation and want to pass a plain object through but I’m getting an error during schema validation
1
b
I might be having this same issue I can't figure it out, my prisma server playground takes my mutation but can't get it to work on yoga for some reason
Copy code
mutation createFeed {
  createFeed(
    data:{
      date: "2019-03-14"
    snake: {connect: {id: "cjt7gsl2e00360820qcc8pjav"}}
    prey: {connect: {id: "cjt7gplfi002u0820nf9lyhrm"}}
    notes: "full strike"
    }
  ){ id}
}
that works on my prisma but not when I try on yoga but wasn't sure the right syntax for my resolver file for yoga for that though, is this similar to how yours looked?
disregard I figured out what my issue was, it was basically similiar