Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SubscriptionField does not support type builder api access #595

Closed
jasonkuhrt opened this issue Oct 30, 2020 · 0 comments · Fixed by #694
Closed

SubscriptionField does not support type builder api access #595

jasonkuhrt opened this issue Oct 30, 2020 · 0 comments · Fixed by #694
Labels
scope/subscriptions type/bug Something is not working the way it should

Comments

@jasonkuhrt
Copy link
Member

E.g. for queryField:

You can also use it with a function as the first argument, which will pass the t provided to the definition block, especially useful when using with the connection plugin:

export const usersQueryField = queryField(t => {
  t.connectionField('users', {
    type: SomeType,
    resolve() {
      // ...
    },
  })
})

This does not work for subscriptionField.

@jasonkuhrt jasonkuhrt added the type/bug Something is not working the way it should label Oct 30, 2020
@jasonkuhrt jasonkuhrt added this to Next Sprint in Prisma GraphQL WG Team Nov 12, 2020
@jasonkuhrt jasonkuhrt moved this from Next Sprint to This Sprint in Prisma GraphQL WG Team Nov 25, 2020
@jasonkuhrt jasonkuhrt added scope/subscriptions needs/discussion Open-ended conversation about something (ideation, design, analysis, ...) labels Nov 25, 2020
@jasonkuhrt jasonkuhrt moved this from This Sprint to In Review in Prisma GraphQL WG Team Dec 2, 2020
@jasonkuhrt jasonkuhrt removed the needs/discussion Open-ended conversation about something (ideation, design, analysis, ...) label Dec 2, 2020
Prisma GraphQL WG Team automation moved this from In Review to Shipped Dec 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope/subscriptions type/bug Something is not working the way it should
Projects
Development

Successfully merging a pull request may close this issue.

1 participant