Repository URL to install this package:
|
Version:
0.0.13 ▾
|
import { gql } from 'apollo-boost';
import { GraphQLModule } from '@skava/graphql-toolset';
import { userModule } from '@skava/graphql/dist/graphql-modules/user';
const timeModule = new GraphQLModule({
typeDefs: gql `
type GetTimeResponse {
time: Int
}
type Query {
getTime: GetTimeResponse!
}
`,
resolvers: [
{
Query: {
getTime: (root, args, context) => {
return Date.now();
},
},
},
],
});
export const appModules = new GraphQLModule({
imports: [
timeModule,
// ...
userModule,
],
});
//# sourceMappingURL=Graphql123.js.map