This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Query { | |
findEstablishments( | |
input: FindEstablishmentsInput! | |
): SearchableEstablishmentConnection @aws_iam @aws_cognito_user_pools | |
} | |
type GPS { | |
lon: Float | |
lat: Float |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"ConfigureESCustom": { | |
"Type": "Custom::ConfigureES", | |
"Properties": { | |
"ServiceToken": { | |
"Fn::GetAtt": ["ConfigureES", "Arn"] | |
} | |
} | |
}, | |
"ConfigureES": { | |
"Type": "AWS::Lambda::Function", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type GPS { | |
lon: Float | |
lat: Float | |
} | |
type Establishment | |
@model | |
@auth(rules: [{ allow: public, provider: iam }]) | |
@key(fields: ["ownerId", "id"]) { | |
id: ID! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react" | |
import PropTypes from "prop-types" | |
export default function HTML(props) { | |
return ( | |
<html {...props.htmlAttributes}> | |
<head> | |
<meta charSet="utf-8" /> | |
<meta httpEquiv="x-ua-compatible" content="ie=edge" /> | |
<meta |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import { withApollo } from 'react-apollo'; | |
export default options => (WrappedComponent) => { | |
class QueryEnhancer extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
[`${this.props.options.dataKey}`]: {}, | |
[`${this.props.options.dataKey}Loading`]: false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState } from "react"; | |
import Auth from "@aws-amplify/auth"; | |
import config from "./aws-exports"; | |
Auth.configure(config); | |
const signUpUser = async ({ | |
password, | |
setSuccessOrErrorMessage, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
arbitrary: {'Arbitrary non-empty content'} |