Skip to content

Commit 3238f7c

Browse files
committed
[deploy_website] update dead link on apollo-angular docs
fixes json schema config
1 parent 5859d2e commit 3238f7c

File tree

4 files changed

+86
-29
lines changed

4 files changed

+86
-29
lines changed

packages/plugins/typescript/apollo-angular/src/config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { RawClientSideBasePluginConfig } from '@graphql-codegen/visitor-plugin-c
77
*
88
* It extends the basic TypeScript plugins: `@graphql-codegen/typescript`, `@graphql-codegen/typescript-operations` - and thus shares a similar configuration.
99
*
10-
* To shed some more light regards this template, it's recommended to go through the this article: http://apollographql.com/docs/angular/basics/services.html , and to read the Code Generation with Apollo Angular: https://the-guild.dev/blog/apollo-angular-12
10+
* To shed some more light regards this template, it's recommended to go through the this article: https://apollo-angular.com/docs/get-started , and to read the Code Generation with Apollo Angular: https://the-guild.dev/blog/apollo-angular-12
1111
*/
1212
export interface ApolloAngularRawPluginConfig extends RawClientSideBasePluginConfig {
1313
/**

packages/utils/config-schema/src/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { generateDocs } from './docs';
55
import mkdirp from 'mkdirp';
66
import { pluginsConfigurations, presetsConfigurations } from './plugins';
77
import { join } from 'path';
8-
import { apply } from 'jsonpath';
8+
const jsonPath = require('jsonpath');
99

1010
const tsConfig = require('../../../../tsconfig.json');
1111

@@ -141,10 +141,10 @@ async function generate() {
141141
);
142142

143143
// Remove non-standard keys
144-
apply(schema, `$..${MARKDOWN_JSDOC_KEY}`, () => undefined);
144+
jsonPath.apply(schema, `$..${MARKDOWN_JSDOC_KEY}`, () => undefined);
145145

146146
// Remvoe default to avoid annoying auto-complete
147-
apply(schema, `$..*`, v => {
147+
jsonPath.apply(schema, `$..*`, v => {
148148
if (v && typeof v === 'object' && typeof v[DEFAULT_JSDOC_KEY] !== 'undefined') {
149149
if (!v.description) {
150150
v.description = '';
File renamed without changes.

0 commit comments

Comments
 (0)