Nexus-plugin-prisma: Subscriptions are not supported yet with `t.prismaFields`

Created on 23 Jan 2019  路  13Comments  路  Source: graphql-nexus/nexus-plugin-prisma

TODO

notprisma1 typbug

Most helpful comment

@Weakky prisma/nexus#21 is now closed!
More details on PR: https://github.com/prisma/nexus/pull/66
I'm very anxious about subscriptions with nexus-prisma.
I'll try to dig out in the code this weekend to propose a PR. Thanks for the good work!

All 13 comments

@Weakky Anything I can do to help here?

Hey !

PR are always appreciated, feel free to dig into the codebase and create a PR if you feel like so !

As far as I can tell, there are two things to change:

  • The generated resolvers needs to support subscriptions (atm, it just throws)
  • And generate the correct types in nexus-prisma-generate

Update: This needs to be rolled out first https://github.com/prisma/nexus/issues/21

@Weakky prisma/nexus#21 is now closed!
More details on PR: https://github.com/prisma/nexus/pull/66
I'm very anxious about subscriptions with nexus-prisma.
I'll try to dig out in the code this weekend to propose a PR. Thanks for the good work!

@nevescode That's amazing! If you need any help, feel free to DM me on the Prisma slack @weakky 馃檹

Hi any news about this? 馃槩

Hey everyone,

While we haven't implemented subscriptions yet, it's important to mention that subscriptions should already work nonetheless with nexus if you implement the resolvers yourself with subscriptionField().

What doesn't work yet are the automatic resolvers when using t.prismaFields([])

hey, may I ask if you/somebody knows when to expect this feature?

+1

Awesome. Hope as soon as possible.
Have a good day.

So is topic dead? :(

Apologies if I am missing something but isn鈥檛 that rather a workaround?

I think subscription via t.prismaFields() syntax is what we are all after.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lterfloth picture lterfloth  路  5Comments

aqwert picture aqwert  路  3Comments

antonbramsen picture antonbramsen  路  4Comments

malekjaroslav picture malekjaroslav  路  5Comments

ryands17 picture ryands17  路  5Comments