$ docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { ApolloServer, gql } from 'apollo-server-micro'; | |
| const typeDefs = gql` | |
| type Query { | |
| sayHello: String | |
| } | |
| `; | |
| const resolvers = { | |
| Query: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * server/dataSources/Auth.js | |
| * Auth implementation, it's not really a dataSource so it doesn't need to be here | |
| */ | |
| const { authenticate, createJwt } = require('../lib/passport'); | |
| const { ON_HTTPS } = require('../configs'); | |
| const ONE_MINUTE = 1000 * 60; | |
| const ONE_DAY = ONE_MINUTE * 60 * 24; | |
| const ONE_MONTH = ONE_DAY * 30; |