Skip to content

Instantly share code, notes, and snippets.

View damianrr's full-sized avatar

Damian Rodriguez Rivero damianrr

View GitHub Profile
class Unit(graphene.ObjectType):
unit_id = graphene.Int()
class_id = graphene.Int()
subject_id = graphene.Int()
class SharedCourseOutlineEndpoint(graphene.ObjectType):
units = graphene.List(Uni
TEST_DB_URI = 'mysql+pymysql://amerit:amerit@mysqldb/test_amerit'
--from ftcore.models import Group, GroupAssociation, User, UserRole
@pytest.fixture(scope="session")
def app(request):
app = create_app(SERVER_NAME='fym.test:3000',
SQLALCH
{"questionTagsById":[{
id: "546643",
question_type: "free/response",
tags: [
{
"tag_id": 345345,
"hierarchy": "flat",
"title": "Question Type",
"values": ["SAQ"],
},
@damianrr
damianrr / amplify-function-graphql-cognito.js
Last active March 6, 2020 22:42
How to query/mutate AppSync's GraphQL from within Amplify's lambda functions by login into Cognito user pool and reusing Authorization token.
const R = require('ramda');
const aws = require("aws-sdk");
const { GraphQLClient } = require("graphql-request");
aws.config.update({
region: process.env.REGION
});
const cognitoidentityserviceprovider = new aws.CognitoIdentityServiceProvider({
apiVersion: "2016-04-18"
});
portal-20190528145021-functionProcessUserNotification-1QZTQH02YKAA4
NESTED
CREATE_COMPLETE 2019-08-13 13:57:55 UTC-0400 Lambda resource stack creation using Amplify CLI
portal-20190528145021-functionProcessNotification-1IHGD373GOU40
NESTED
CREATE_COMPLETE 2019-08-13 13:57:55 UTC-0400 Lambda resource stack creation using Amplify CLI
portal-20190528145021-apiportal-1J6HJ2ZE3SERG-UserNotificationEvent-1W72Z6T535P9W
NESTED