-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into remove-typer-workarounds
- Loading branch information
Showing
13 changed files
with
580 additions
and
70 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[ | ||
{ | ||
"name": "electronics", | ||
"description": "bargain electronics" | ||
}, | ||
{ | ||
"name": "books", | ||
"description": "bargain books" | ||
}, | ||
{ | ||
"name": "movies", | ||
"description": "bargain movies" | ||
} | ||
] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[ | ||
{ | ||
"name": "Valued Customer", | ||
"email": "fake@fauna.com", | ||
"address": { | ||
"street": "Herengracht", | ||
"city": "Amsterdam", | ||
"state": "North Holland", | ||
"postalCode": "1015BT", | ||
"country": "Netherlands" | ||
} | ||
} | ||
] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,16 @@ | ||
{ | ||
"query": " | ||
let customer = Customer.byEmail('fake@fauna.com').first()!\n | ||
let orders = ['cart', 'processing', 'shipped', 'delivered'].map(status => {\n | ||
let order = Order.byCustomer(customer).firstWhere(o => o.status == status)\n | ||
if (order == null) {\n | ||
let newOrder = Order.create({\n | ||
customer: customer,\n | ||
status: status,\n | ||
createdAt: Time.now(),\n | ||
payment: {}\n | ||
})\n | ||
let product = Product.byName('Drone').first()!\n | ||
let orderItem = OrderItem.create({ order: newOrder, product: product, quantity: 1 })\n | ||
orderItem\n | ||
newOrder\n | ||
} else {\n | ||
order\n | ||
}\n | ||
})\n | ||
orders | ||
" | ||
} | ||
let customer = Customer.byEmail('fake@fauna.com').first()! | ||
['cart', 'processing', 'shipped', 'delivered'].map(status => { | ||
let order: Any = Order.byCustomer(customer).firstWhere(o => o.status == status) | ||
if (order == null) { | ||
let newOrder: Any = Order.create({ | ||
customer: customer, | ||
status: status, | ||
createdAt: Time.now(), payment: {} | ||
}) | ||
|
||
let product: Any = Product.byName('Drone').first()! | ||
let orderItem: Any = OrderItem.create( {order: newOrder, product: product, quantity: 1 }) | ||
orderItem | ||
newOrder | ||
} else { order } | ||
}) |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"dev": { | ||
"host": "http://localhost:8080" | ||
} | ||
} |
Oops, something went wrong.