trabian / banking-api Goto Github PK
View Code? Open in Web Editor NEWA set of packages for interacting with and mocking financial services.
A set of packages for interacting with and mocking financial services.
Integrate https://github.com/typicode/lowdb to allow both database and memory storage of the mock data.
Ultimately I'd also like to be able to automate the deployment of npm packages from CI.
The idea of "Relationship" seems to be a bit too abstract and leads to confusion as most of the APIs we're integrating use the concept of "Customer" and we find ourselves mapping those two conceptually.
Instead of using:
query AccountQuery {
me {
relationship {
accounts {
id
}
}
}
}
We'll use:
query AccountQuery {
me {
customer {
accounts {
id
}
}
}
}
Note that we're still keeping the distinction between "me" (as the current user) and "customer" (me in my role as a user). This is still an open area for conversation but we'll try this version first.
We still need to handle the idea of "Top Level Accounts" that we've encountered at FIs (particularly credit unions), where they'll have a structure like:
In a previous project we mapped these conceptually to:
While most users only have one account and would thus be well served by a "Customer" that maps to a "Top Level Account", we can handle the multi-top-level-account scenario using an optional id
parameter passed to the customer
query:
query AccountQuery {
me {
customer {
accounts {
id
}
}
}
}
query OtherAccountQuery {
me {
customer(id: "1234") {
accounts {
id
}
}
}
}
Sky's the limit - whatever you think would be helpful, @treeme.
This was mentioned in a GraphQL design tutorial that Shopify put out and makes sense to me:
First a quick note on naming: you'll notice that we named all of our mutations in the form collection rather than the more naturally-English Collection. Unfortunately, GraphQL does not provide a method for grouping or otherwise organizing mutations, so we are forced into alphabetization as a workaround. Putting the core type first ensures that all of the related mutations group together in the final list.
Rule #17: Prefix mutation names with the object they are mutating for alphabetical grouping (e.g. use orderCancel instead of cancelOrder).
Let's update the mutation names within this project, both the schemas within graphql-types and in the packages leveraging those schemas (a find-and-replace should work).
GraphQL Schema Design: Building Evolvable Schemas โ Apollo GraphQL
https://dev-blog.apollodata.com/graphql-schema-design-building-evolvable-schemas-1501f3c59ed5
Our responsible spender will have money left over after most paychecks. This should go into a savings account which can optionally have an interest rate.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.