Skip to content
This repository has been archived by the owner on Oct 21, 2020. It is now read-only.

Graphql spike #40

Closed
wants to merge 7 commits into from
Closed

Conversation

ojongerius
Copy link
Contributor

PR with a very small GraphQL service, served from Lambda.

const bluebird = require("bluebird");
mongoose.Promise = bluebird;
mongoose.Promise = global.Promise;

This comment was marked as off-topic.

});
};

exports.apiHandler = lambdaPlayground({

This comment was marked as off-topic.

@@ -0,0 +1,10 @@
import * as dbUsers from "../mongo/user";

This comment was marked as off-topic.

runtime: nodejs8.10
stage: dev
region: us-east-1
environment:

This comment was marked as off-topic.

provider:
name: aws
runtime: nodejs8.10
stage: dev

This comment was marked as off-topic.

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.

plugins:
- serverless-webpack
- serverless-offline-scheduler
- serverless-offline

This comment was marked as off-topic.


type Query {
users(
_id: ID

This comment was marked as off-topic.

});

export function getUsers(args) {
return new Promise((resolve, reject) => {

This comment was marked as off-topic.

): [User]
}

type Mutation {

This comment was marked as off-topic.

});
}

export function createUser(args) {

This comment was marked as off-topic.

@@ -0,0 +1,268 @@
const mongoose = require("mongoose");
const validator = require("validator");

This comment was marked as off-topic.

@ojongerius ojongerius requested a review from raisedadead April 17, 2018 03:15
* 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)
@ojongerius
Copy link
Contributor Author

ojongerius commented Apr 17, 2018

Too many conflicts 🤦‍♂️ .I'll raise one against a clean tree to save time.

@ojongerius ojongerius closed this Apr 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants