* 2919: rewrite for update to apollo 4 (#131) * rewrite for update to apollo 4 * removed container tests, edited make to publish any branch to staging * revert makefile * cleanup * update 1 * more fixes to get it working on aws * enabled csrf prevention protection, testing if build works * switched to express version * changed the healthcheck url * added cache to restdatasources * 3011: create a login mutation on graphql server that responds with a access token (#133) * 3011 added login rest endpoint and general scope fixes * changed login auth to basic auth username and password * minor changes from CR feedback * force update * added tighter timeout for idle knex connection * Refactor authentication and scopes (#134) * big refactor of scopes in graphql * cr fixes * some security fixes (#135) * some security fixes * cleanup * update staging * minor readme change
53 lines
1.4 KiB
TypeScript
53 lines
1.4 KiB
TypeScript
import { orderQueryTypeDefs, orderTypeDefs } from './orders-resolver';
|
|
import {
|
|
productQueryTypeDefs,
|
|
productTypeDefs,
|
|
productMutationTypeDefs,
|
|
} from './products-resolver';
|
|
import { designerQueryTypeDefs, designerTypeDefs } from './designers-resolver';
|
|
import { categoryQueryTypeDefs, categoryTypeDefs } from './categories-resolver';
|
|
import {
|
|
keywordsMutationTypeDefs,
|
|
keywordsQueryTypeDefs,
|
|
keywordTypeDefs,
|
|
} from './keywords-resolver';
|
|
import {
|
|
marketsQueryTypeDefs,
|
|
marketTypeDefs,
|
|
} from './markets-locale-resolver';
|
|
|
|
import { DateTimeResolver, DateResolver, JSONResolver } from 'graphql-scalars';
|
|
import { interiorsQueryTypeDefs, interiorTypeDefs } from './interiors-resolver';
|
|
import { imagesQueryTypeDefs } from './file-upload-resolvers';
|
|
import { TextsQueryTypeDefs } from './texts-resolver';
|
|
|
|
const resolvers = {
|
|
Query: {
|
|
...orderQueryTypeDefs,
|
|
...productQueryTypeDefs,
|
|
...designerQueryTypeDefs,
|
|
...categoryQueryTypeDefs,
|
|
...keywordsQueryTypeDefs,
|
|
...marketsQueryTypeDefs,
|
|
...interiorsQueryTypeDefs,
|
|
...imagesQueryTypeDefs,
|
|
...TextsQueryTypeDefs,
|
|
},
|
|
Mutation: {
|
|
...productMutationTypeDefs,
|
|
...keywordsMutationTypeDefs,
|
|
},
|
|
...orderTypeDefs,
|
|
...productTypeDefs,
|
|
...designerTypeDefs,
|
|
...categoryTypeDefs,
|
|
...keywordTypeDefs,
|
|
...marketTypeDefs,
|
|
...interiorTypeDefs,
|
|
DateTime: DateTimeResolver,
|
|
Date: DateResolver,
|
|
JSON: JSONResolver,
|
|
};
|
|
|
|
export default resolvers;
|