misc gql types
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
/* eslint-disable no-param-reassign */
|
||||
|
||||
function findOne(globalConfig) {
|
||||
import { GlobalConfig } from '../../config/types';
|
||||
import { Document } from '../../../types';
|
||||
|
||||
function findOne(globalConfig: GlobalConfig): Document {
|
||||
async function resolver(_, args, context) {
|
||||
if (args.locale) context.req.locale = args.locale;
|
||||
if (args.fallbackLocale) context.req.fallbackLocale = args.fallbackLocale;
|
||||
|
||||
@@ -5,6 +5,8 @@ function initPlayground(ctx: Payload): void {
|
||||
if ((!ctx.config.graphQL.disablePlaygroundInProduction && process.env.NODE_ENV === 'production') || process.env.NODE_ENV !== 'production') {
|
||||
ctx.router.get(ctx.config.routes.graphQLPlayground, graphQLPlayground({
|
||||
endpoint: `${ctx.config.routes.api}${ctx.config.routes.graphQL}`,
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore ISettings interface has all properties required for some reason
|
||||
settings: {
|
||||
'request.credentials': 'include',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user