-
-
Notifications
You must be signed in to change notification settings - Fork 28
Conversation
@@ -0,0 +1,21 @@ | |||
const mongoose = require("mongoose"); |
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.
stage: dev | ||
region: us-east-1 | ||
environment: | ||
MONGODB_URL: ${env:MONGODB_URL} |
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.
|
||
type Query { | ||
users( | ||
_id: ID |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
body: message || "Incorrect id" | ||
}); | ||
|
||
export function getUsers(args) { |
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.
@@ -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.
@raisedadead I'm not able to look at they Snyk details ("Unable to display this organisation |
Adds small GraphQL service to be served as Lamba. This is deployed at https://ys2mlj49y9.execute-api.us-east-1.amazonaws.com/dev/api