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

feat: add tiny GraphQL Lambda #42

Merged
merged 1 commit into from
Apr 17, 2018
Merged

feat: add tiny GraphQL Lambda #42

merged 1 commit into from
Apr 17, 2018

Conversation

ojongerius
Copy link
Contributor

Adds small GraphQL service to be served as Lamba. This is deployed at https://ys2mlj49y9.execute-api.us-east-1.amazonaws.com/dev/api

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

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.

stage: dev
region: us-east-1
environment:
MONGODB_URL: ${env:MONGODB_URL}

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.


type Query {
users(
_id: ID

This comment was marked as off-topic.

body: message || "Incorrect id"
});

export function getUsers(args) {

This comment was marked as off-topic.

): [User]
}

type Mutation {

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 04:20
@ojongerius
Copy link
Contributor Author

@raisedadead I'm not able to look at they Snyk details ("Unable to display this organisation
The organisation does not exist, or you do not have permissions to access it.") could you allow me access?

@ojongerius ojongerius merged commit 5441b4c into staging Apr 17, 2018
@ojongerius ojongerius deleted the graphql_spike branch April 17, 2018 23:31
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.

1 participant