+
+
+
Mike DeWitt
Director of Engineering, First Dollar
AKA: It's a bank account
https://2020.stateofjs.com/en-US/
https://2020.stateofjs.com/en-US/
https://2020.stateofjs.com/en-US/
type Query {
books: [Book!]!
}
type Mutation {
addBookToCart(bookId: String!): Book!
}
type Book {
id: String!
inStock: Boolean!
title: String!
author: String!
thumbnail: String!
description: String!
price: String!
}
type Book = {
id: string
inStock: boolean
title: string
author: string
thumbnail: string
description: string
price: string
}
const myBook: Book = {
id: "fk903",
title: "Untamed",
price: "$25.99",
inStock: false,
author: "Glennon Doyle",
description: "description",
thumbnail: "https://pic.com",
}
// Valid
myBook.title.toLowerCase()
// TS Failure: Property 'salePrice' does not exist on type 'Book'
myBook.salePrice.toLowerCase()
// TS Failure: Property 'toLowerCase' does not exist on type 'boolean'.
myBook.inStock.toLowerCase()
https://graphql-code-generator.com/
query AccountTransfers($fromDate: String, $toDate: String, $page: PageInput) {
accountTransfers(fromDate: $fromDate, toDate: $toDate, page: $page) {
transfers {
node {
id
createdAt
linkedBankAccountId
direction
amount
amountCurrency
amountForDisplay
note
contributionType
contributionYear
withdrawalCategoryCode
withdrawalExpenseDate
withdrawalReceipts {
bucket
fullPath
}
status
effectiveDate
errorCode
}
}
pageInfo {
hasNextPage
endCursor
}
}
}