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
| {"lastUpload":"2018-06-15T14:48:09.787Z","extensionVersion":"v2.9.2"} |
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 Barista @model { | |
| id: ID! | |
| name: String! | |
| orders: [Order] @connection(name: "BaristaCurrentOrders") | |
| } | |
| type Coffee @model { | |
| id: ID! | |
| name: String! | |
| ingredients: [Ingredient] | |
| order: Order! @connection(name: "CoffeeOrder") |
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 { API, graphqlOperation } from 'aws-amplify'; | |
| /** | |
| * @desc Recursively fetch all items in a list query using nextToken | |
| * @param {Object} query The query object from cda-graphql in use. | |
| * @param {Object} variables The variables to pass to query. | |
| * @param {Array} items Any preliminary Items already fetched | |
| * @param {Function} callback Optional callback function to be fired with every batch of items from query iteration. | |
| * @returns {Array} Array of all items received from queries. | |
| */ |
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 { Logger } from 'aws-amplify'; | |
| const logger = new Logger('fetchItemsNextToken', 'VERBOSE'); | |
| /** | |
| * @desc Recursively fetch all items in a list query using nextToken | |
| * @param {Object} client An AppSyncClient instantiation | |
| * @returns {Object} { items, key } Items are results, | |
| * key is the name of the query called. | |
| */ |
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 gql from 'graphql-tag'; | |
| const createOrder = gql` | |
| mutation CreateOrder($input: CreateOrderInput!) { | |
| onCreateOrder(input: $input) { | |
| id | |
| orderCustomerId | |
| customer { | |
| id | |
| name |
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
| const gql from 'graphql-tag'; | |
| const onCreateOrderByCustomer = gql` | |
| mutation OnCreateOrder($orderCustomerId: ID) { | |
| onCreateOrder(orderCustomerId: $orderCustomerId) { | |
| id | |
| orderCustomerId | |
| customer { | |
| id | |
| name |
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
| { | |
| "packages": [ | |
| "packages/*" | |
| ], | |
| "npmClient": "yarn", | |
| "version": "0.0.0" | |
| } |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Sample Webpage</title> | |
| </head> | |
| <body> | |
| Sample HTML body text. | |
| </body> | |
| <script src="index.js"></script> |
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
| 'use strict'; | |
| console.log('A sample console log'); |
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
| { | |
| "name": "frontend", | |
| "version": "1.0.0", | |
| "main": "index.js", | |
| "license": "MIT", | |
| "scripts": { | |
| "lint": "eslint --debug index.js" | |
| }, | |
| "devDependencies": { | |
| "eslint": "^6.7.1", |
OlderNewer