Commit c3676f0 1 parent 8db9286 commit c3676f0 Copy full SHA for c3676f0
File tree 2 files changed +2
-28
lines changed
2 files changed +2
-28
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import * as DIDComm from 'daf-did-comm'
13
13
import { SodiumFsEncryptionKeyManager } from 'daf-sodium-fs'
14
14
15
15
import { NodeSqlite3 } from 'daf-node-sqlite3'
16
- import { DataStore , Gql as DataGql } from 'daf-data-store'
16
+ import { DataStore } from 'daf-data-store'
17
17
import ws from 'ws'
18
18
19
19
import Debug from 'debug'
@@ -89,27 +89,3 @@ export const core = new Daf.Core({
89
89
90
90
const db = new NodeSqlite3 ( dataStoreFilename )
91
91
export const dataStore = new DataStore ( db )
92
-
93
- const { ApolloServer } = require ( 'apollo-server-express' )
94
- import merge from 'lodash.merge'
95
-
96
- export const apolloServer = new ApolloServer ( {
97
- typeDefs : [
98
- Daf . Gql . baseTypeDefs ,
99
- Daf . Gql . Core . typeDefs ,
100
- Daf . Gql . IdentityManager . typeDefs ,
101
- DataGql . typeDefs ,
102
- DIDComm . Gql . typeDefs ,
103
- W3c . Gql . typeDefs ,
104
- ] ,
105
- resolvers : merge (
106
- Daf . Gql . Core . resolvers ,
107
- Daf . Gql . IdentityManager . resolvers ,
108
- DataGql . resolvers ,
109
- DIDComm . Gql . resolvers ,
110
- W3c . Gql . resolvers ,
111
- ) ,
112
- context : ( ) => ( { dataStore, core } ) ,
113
- introspection : true ,
114
- graphqlPath : '/graphql' ,
115
- } )
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import exphbs from 'express-handlebars'
11
11
import sharedsession from 'express-socket.io-session'
12
12
13
13
const bodyParser = require ( 'body-parser' )
14
- import { core , dataStore , apolloServer } from './setup'
14
+ import { core , dataStore } from './setup'
15
15
import { webDidDocFromEthrDid } from './web-did-doc'
16
16
17
17
import Debug from 'debug'
@@ -138,8 +138,6 @@ async function main() {
138
138
res . send ( 'OK' )
139
139
} )
140
140
141
- apolloServer . applyMiddleware ( { app } )
142
-
143
141
await dataStore . initialize ( )
144
142
const server = http . createServer ( app )
145
143
const io = socketio ( server )
You can’t perform that action at this time.
0 commit comments