thdxr
10/30/2021, 4:10 PMAdrián Mouly
10/30/2021, 7:26 PMOmi Chowdhury
10/30/2021, 7:50 PMgraphql-tag
lib?thdxr
10/30/2021, 8:11 PMOmi Chowdhury
10/30/2021, 8:13 PMthdxr
10/30/2021, 8:14 PMOmi Chowdhury
10/30/2021, 8:16 PMthdxr
10/30/2021, 8:17 PMOmi Chowdhury
10/30/2021, 8:17 PMOmi Chowdhury
10/30/2021, 8:17 PMthdxr
10/30/2021, 8:18 PMOmi Chowdhury
10/30/2021, 8:18 PMthdxr
10/30/2021, 8:18 PMthdxr
10/30/2021, 8:18 PMthdxr
10/30/2021, 8:19 PMid
and name
. And the only way I can find to do that is by creating a different type for it. But then it confuses my clientside cache because it doesn't know TinyAuthor and Author are the same thing unless I setup a bunch of mappingthdxr
10/30/2021, 8:20 PMOmi Chowdhury
10/30/2021, 8:20 PMthdxr
10/30/2021, 8:21 PMOmi Chowdhury
10/30/2021, 8:21 PMthdxr
10/30/2021, 8:22 PMOmi Chowdhury
10/30/2021, 8:23 PMOmi Chowdhury
10/30/2021, 8:25 PMthdxr
10/30/2021, 8:25 PMthdxr
10/30/2021, 8:26 PMOmi Chowdhury
10/30/2021, 8:27 PMthdxr
10/30/2021, 8:28 PMthdxr
10/30/2021, 8:28 PMthdxr
10/30/2021, 8:29 PMOmi Chowdhury
10/30/2021, 8:31 PMthdxr
10/30/2021, 8:33 PMOmi Chowdhury
10/30/2021, 8:39 PMOmi Chowdhury
10/30/2021, 8:41 PM/users/34?expansions=department.name,department,manager.name,manager.id,manager.department.id,manager.department.id
was a bad DXthdxr
10/30/2021, 8:44 PMOmi Chowdhury
10/30/2021, 8:46 PMthdxr
10/30/2021, 8:47 PMthdxr
10/30/2021, 8:47 PMOmi Chowdhury
10/30/2021, 8:47 PMOmi Chowdhury
10/30/2021, 8:52 PM{status: 'terminated'}
but we also needed to send {moveDirectReportsTo: 'some other user'}
thdxr
10/30/2021, 8:53 PMOmi Chowdhury
10/30/2021, 8:54 PMthdxr
10/30/2021, 8:55 PMthdxr
10/30/2021, 8:56 PMOmi Chowdhury
10/30/2021, 8:59 PMOmi Chowdhury
10/30/2021, 9:03 PMquery GetBalanceSheet ($ledgerId: ID!, $filter: LedgerAccountFilter) {
ledger(id: $ledgerId) {
ledgerAccounts(filter: $filter) {
nodes {
id
name
type
end_of_year: balance(at: "2021")
end_of_month: balance(at: "2021-06")
end_of_day: balance(at: "2021-06-15")
end_of_hour: balance(at: "2021-06-15T06")
}
}
}
}
{
"ledgerId": "some-ledger-id",
"filter": {
"type": {
"in": [
"asset",
"liability"
]
}
}
}
Omi Chowdhury
10/30/2021, 9:29 PMYour customers are probably more savvy but have you had any pushback on that from people looking for a normal rest api?Not really, initially most people are indifferent or “cool!” - and then they become converts once they setup code-generated SDKs and start creating API calls like the above
Damjan
11/01/2021, 12:39 PM