Btw, there seems to be some changes done to how th...
# prisma-whats-new
k
Btw, there seems to be some changes done to how the subscriptions work, are there some documentation on the changes?
Copy code
subscription {
  createEvent(
    filter: { season: { id: "ciyw9y5pycs8q01260w6xd12l" } }
  ) {
    id
    course
    startsAt
  }
}
Getting
Cannot query field “createEvent” on type “Subscribtion”.
n
@kimf the changes are not live yet, but here are the new docs: https://www.graph.cool/docs/reference/simple-api/generated-subscriptions-aip7oojeiv we roll this out sometime tomorrow, it's going to be a breaking change to the currently (undocumented) API
k
Ah ok, that explains why it works in my app, but not the playground. Thanks
n
ahh the playground will be updated to support subscriptions as well
k
It wasn’t before? It worked for me yesterday 😄
n
it will work tomorrow :P
k
Awesome
n
do you get the gist of the new API?
k
Yep, I tried this in the Playground:
Copy code
subscription {
  Event(filter: {node: {season: {id: "ciyw9y5pycs8q01260w6xd12l"}}}) {
    mutation
    node {
      id
      status
      startsAt
      course
      courseId
      scoringType
      teamEvent
      oldId
    }
  }
}
guessing that will give me a subscription of all mutation types
n
yes, the mutation types being
CREATED
UPDATED
DELETED
s
Autocomplete in the playground is currently based on the new api, but the subscriptions api still uses the old one. As Nilan said we will do the switch tomorrow. Until then you can explore the new api in the playground, and your app will keep working with the old api.
k
Sweet. Time to go to bed anyway, will play more tomorrow.
Nighty-night 😄