theguild-bot
released this
20 Jan 10:39
·
24 commits
to main
since this release
@graphql-yoga/[email protected]
Patch Changes
- #3676
c9b167b
Thanks @renovate! - dependencies updates:- Updated dependency
@nestjs/graphql@^13.0.0
↗︎ (from
^12.0.0
, inpeerDependencies
)
- Updated dependency
@graphql-yoga/[email protected]
Patch Changes
- #3676
c9b167b
Thanks @renovate! - dependencies updates:- Updated dependency
@nestjs/graphql@^13.0.0
↗︎ (from
^12.0.0
, inpeerDependencies
)
- Updated dependency
- Updated dependencies
[c9b167b
]:- @graphql-yoga/[email protected]
@graphql-yoga/[email protected]
Minor Changes
-
#3677
7419797
Thanks @ardatan! - Expose the server context as the second
parameter, so introspection can be disabled based on the contextimport { createYoga } from 'graphql-yoga' import { useDisableIntrospection } from '@graphql-yoga/plugin-disable-introspection' // Provide your schema const yoga = createYoga({ graphiql: false, plugins: [ useDisableIntrospection({ isDisabled: (_req, ctx) => !ctx.jwt }) ] }) const server = createServer(yoga) server.listen(4000, () => { console.info('Server is running on http://localhost:4000/graphql') })