Skip to content

Commit 775d124

Browse files
committed
revert(core): sofa-api
1 parent 2dc279b commit 775d124

3 files changed

Lines changed: 19 additions & 14 deletions

File tree

packages/prime-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"rc": "1.2.8",
6969
"read-pkg": "4.0.1",
7070
"reflect-metadata": "0.1.13",
71-
"sofa-api": "0.2.2",
71+
"sofa-api": "0.2.3-alpha.0",
7272
"type-graphql": "0.17.0-beta.3",
7373
"typedi": "0.8.0",
7474
"typeorm": "0.2.13",

packages/prime-core/src/server.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import cors from 'cors';
33
import express from 'express';
44
import { buildSchema } from 'graphql';
55
import http from 'http';
6-
// import sofa from 'sofa-api';
6+
import sofa from 'sofa-api';
77
import { ResolverData } from 'type-graphql';
88
import { Container } from 'typedi';
99
import { useContainer } from 'typeorm';
@@ -46,13 +46,13 @@ export const createServer = async ({ port, connection }: ServerConfig) => {
4646
external = await createExternal(connection);
4747
externalServer.schema = external.schema;
4848
externalServer.context = external.context;
49-
// app.use(
50-
// '/api',
51-
// sofa({
52-
// schema: external.schema,
53-
// ignore: ['Prime_Document'],
54-
// })
55-
// );
49+
app.use(
50+
'/api',
51+
sofa({
52+
schema: external.schema,
53+
ignore: ['Prime_Document'],
54+
})
55+
);
5656
});
5757

5858
pubSub.publish('REBUILD_EXTERNAL', { name: 'SERVER_BOOT' });

yarn.lock

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15676,10 +15676,10 @@ socks@~2.2.0:
1567615676
ip "^1.1.5"
1567715677
smart-buffer "4.0.2"
1567815678

15679-
sofa-api@0.2.2:
15680-
version "0.2.2"
15681-
resolved "https://registry.yarnpkg.com/sofa-api/-/sofa-api-0.2.2.tgz#a4b15befabb2de749cc963271c7a6ba264b2bdf4"
15682-
integrity sha512-W6C0R00lM6lcnMzKnmHP82paNSNuJdQm5kk7Fh3rMG+iHTD2VS57vTEVE2bo32g9ug7RW5W5ZoVrAMlvcg2rfQ==
15679+
sofa-api@0.2.3-alpha.0:
15680+
version "0.2.3-alpha.0"
15681+
resolved "https://registry.yarnpkg.com/sofa-api/-/sofa-api-0.2.3-alpha.0.tgz#2c7647df8400447c41e54677603f9178be1f4b79"
15682+
integrity sha512-AgaEAQcKLHK5pUPurG6yARu3XBX63Cgx7M4lYaNx0OWa2rWSPG1dsMFzqgYAUv+79qs9L4T5EKuIPx8C84AI1w==
1568315683
dependencies:
1568415684
change-case "3.0.2"
1568515685
graphql-subscriptions "1.0.0"
@@ -16810,7 +16810,12 @@ typeorm@0.2.13, typeorm@^0.2.11:
1681016810
yargonaut "^1.1.2"
1681116811
yargs "^12.0.5"
1681216812

16813-
typescript@3.2.x, typescript@3.3.1, typescript@^3.2.2:
16813+
typescript@3.2.x:
16814+
version "3.2.4"
16815+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.2.4.tgz#c585cb952912263d915b462726ce244ba510ef3d"
16816+
integrity sha512-0RNDbSdEokBeEAkgNbxJ+BLwSManFy9TeXz8uW+48j/xhEXv1ePME60olyzw2XzUqUBNAYFeJadIqAgNqIACwg==
16817+
16818+
typescript@3.3.1, typescript@^3.2.2:
1681416819
version "3.3.1"
1681516820
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.3.1.tgz#6de14e1db4b8a006ac535e482c8ba018c55f750b"
1681616821
integrity sha512-cTmIDFW7O0IHbn1DPYjkiebHxwtCMU+eTy30ZtJNBPF9j2O1ITu5XH2YnBeVRKWHqF+3JQwWJv0Q0aUgX8W7IA==

0 commit comments

Comments
 (0)