Comments (4)
Glad you like the idea! Your example should work out of the gate, because anonymous entities will support all the features that current entities have (and we can already use entities within other entities).
from data-point.
This is a fantastic idea!
Sorry if this is obvious, but what would happen if an anonymous entity tried to refer to a declared entity?
Here's a rough example of the question:
// data-hash.js
module.exports = hash({
value: 'request:getOrgInfo', // can refer to declared entity?
mapKeys: {
reposUrl: '$repos_url',
eventsUrl: '$events_url'
}
})
// main.js
const dataHash = require('./data-hash')
dataPoint.addEntities({
'request:getOrgInfo': {
url: 'https://api.github.com/orgs/nodejs'
},
'hash:OrgInfo': dataHash // would this pull the value from the declared entity?
})
from data-point.
love this idea, my only concern is people abusing this feature and creating nested entities which could potentially end up in a crazy triangle of hell mess :)
I believe the feature adds a lot of value
things to keep in mind:
- do not depend on datapoint instance, should be exposed as a static factory of DataPoint
- think about usage of custom entities
- parse at compile time, so errors happen there and not at run time
from data-point.
superseded by #129
from data-point.
Related Issues (20)
- add test reducers/select
- add tests create-reducer
- add tests data-point
- update version in package.json to 6.x (possibly with modifier like alpha, beta, RC?)
- Integrate JSDoc documentation with Docusaurus
- docs(data-point): add versioning in docusaurus
- implement opentrace correctly
- create tracing api
- implement mermaid tracing support
- docs(data-point): add @class tags HOT 1
- ReducerEntity should pass erro to input of catch
- Add reducer to fetch external resources
- Migrate to Airbnb Style Guide and Prettier
- migrate to async/await
- staleWhileRevalidate is not saving new value
- Add typedefs.d.ts file for data-point data types
- Create a stand alone schema function reducer
- check output type before storing cache entry
- It would be nice if you can provide the fully formed request URL also if the 'inspect' is set to 'true'
- Migrate CI to GitHub Actions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from data-point.