build: 复原 graphql 配置,修改开发 port.

This commit is contained in:
Ivan Li 2021-05-01 17:45:31 +08:00
parent 183564aed8
commit 4a533748f3
3 changed files with 17 additions and 16 deletions

View File

@ -335,8 +335,8 @@
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "Article",
"kind": "SCALAR",
"name": "Int",
"ofType": null
}
},
@ -349,6 +349,16 @@
"enumValues": null,
"possibleTypes": null
},
{
"kind": "SCALAR",
"name": "Int",
"description": "The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",
"fields": null,
"inputFields": null,
"interfaces": null,
"enumValues": null,
"possibleTypes": null
},
{
"kind": "OBJECT",
"name": "Query",
@ -503,7 +513,7 @@
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Int",
"name": "String",
"ofType": null
}
},
@ -516,16 +526,6 @@
"enumValues": null,
"possibleTypes": null
},
{
"kind": "SCALAR",
"name": "Int",
"description": "The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",
"fields": null,
"inputFields": null,
"interfaces": null,
"enumValues": null,
"possibleTypes": null
},
{
"kind": "SCALAR",
"name": "Boolean",

View File

@ -35,10 +35,11 @@
"yup": "^0.32.9"
},
"scripts": {
"start": "PORT=7133 BROWSER=none react-scripts start",
"start": "PORT=7135 BROWSER=none react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"prestart": "npm run graphql",
"graphql": "graphql-codegen --config codegen.yml"
},
"eslintConfig": {

View File

@ -40,7 +40,7 @@ export type Mutation = {
__typename?: 'Mutation';
createArticle: Article;
updateArticle: Article;
removeArticle: Article;
removeArticle: Scalars['Int'];
};
@ -75,5 +75,5 @@ export type UpdateArticleInput = {
content?: Maybe<Scalars['String']>;
publishedAt?: Maybe<Scalars['DateTime']>;
tags?: Maybe<Array<Scalars['String']>>;
id: Scalars['Int'];
id: Scalars['String'];
};