-
-
Notifications
You must be signed in to change notification settings - Fork 28
Conversation
const bluebird = require("bluebird"); | ||
mongoose.Promise = bluebird; | ||
mongoose.Promise = global.Promise; | ||
|
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
}); | ||
}; | ||
|
||
exports.apiHandler = lambdaPlayground({ |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
@@ -0,0 +1,10 @@ | |||
import * as dbUsers from "../mongo/user"; |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
runtime: nodejs8.10 | ||
stage: dev | ||
region: us-east-1 | ||
environment: |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
provider: | ||
name: aws | ||
runtime: nodejs8.10 | ||
stage: dev |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
environment: | ||
MONGODB_URL: ${env:MONGODB_URL} | ||
GRAPHQL_ENDPOINT_URL: ${env:GRAPHQL_ENDPOINT_URL} | ||
iamRoleStatements: |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
plugins: | ||
- serverless-webpack | ||
- serverless-offline-scheduler | ||
- serverless-offline |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
|
||
type Query { | ||
users( | ||
_id: ID |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
}); | ||
|
||
export function getUsers(args) { | ||
return new Promise((resolve, reject) => { |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
): [User] | ||
} | ||
|
||
type Mutation { |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
}); | ||
} | ||
|
||
export function createUser(args) { |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
@@ -0,0 +1,268 @@ | |||
const mongoose = require("mongoose"); | |||
const validator = require("validator"); |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
ISSUES CLOSED: freeCodeCamp#29
349da8d
to
d398a4d
Compare
* upstream/staging: chore(tools): add prettier and commit helpers fix(snyk): update scripts for production and CI test docs(readme): add snyk and travis badges ci: add travis and commitlint setups build(docker): Use LTS versions for Node and MongoDB. (freeCodeCamp#28)
Too many conflicts 🤦♂️ .I'll raise one against a clean tree to save time. |
PR with a very small GraphQL service, served from Lambda.