I'm trying to use delegation and schema stitching ...
# orm-help
s
I'm trying to use delegation and schema stitching with prisma, but failing tremendously. Are there any good tutorials or documentation on this subject? I saw that there is a method name 'delegate' in the Prisma API, but I didn't find any documentation about it. Also using the method 'delegateToSchema' from graphql-tools didn't work.
I'm trying to do something like this:
Copy code
query {
  roomsDatesTimesAvailable(roomsID: ["cjkrmzfkb001l0856x26dhdqr"], 
  startSearchDate: "2018-08-22", 
  endSearchDate: "2018-08-24") {
    room {
      id
      name
    }
    datesTimesAvailable {
      checkIn
      checkOut
      price {
        value
      }
    }
  }
}
I would like to delegate the 'room' part to the prisma DB
b
Did you get it to work? I am interested in doing the same thing and i am willing to share my experience
You want to delegate every arg and piece of logic, eposing that spacific part of the prisma api, right?