Comments (7)
I've merged this. Feel free to play around and let me know if you think anything needs to be tweaked.
Working perfectly as expected, thank you so much! Really appreciated!
from warthog.
@metmirr Are you sure that record has a value in the DB?
from warthog.
Yes, I am. Resolver without @Fields
argument return this data:
from warthog.
Fixed in #467
from warthog.
Note that I needed to update the behavior of the Fields
decorator to include all top-level fields. This will bring along both JSON fields as well as associations. Then BaseModel
makes sure all values passed into find
are actually fields on the table. This is technically a breaking change - but I'd argue the Fields
decorator wasn't really working as designed anyway. Do you think this is ok, or should I create a new decorator with the new behavior?
from warthog.
I've merged this. Feel free to play around and let me know if you think anything needs to be tweaked.
from warthog.
Note that I needed to update the behavior of the
Fields
decorator to include all top-level fields. This will bring along both JSON fields as well as associations. ThenBaseModel
makes sure all values passed intofind
are actually fields on the table. This is technically a breaking change - but I'd argue theFields
decorator wasn't really working as designed anyway. Do you think this is ok, or should I create a new decorator with the new behavior?
I think this is it, the decorator is working as expected with jsons, relations etc.
from warthog.
Related Issues (20)
- New BaseService should allow filtering by `id` (eq, in) by default HOT 1
- V3: bump all dependencies to latest
- V3: Add Production defaults to config HOT 1
- CLI: revert migrations
- Update libraries to provide support for Node 14 HOT 1
- Make Config more forgiving HOT 3
- Native support for more specific types HOT 1
- Add ownerId decorator HOT 1
- Bring your own DB connection HOT 1
- Create `TextField` Decorator HOT 1
- Use `timestamptz` for datetimes HOT 1
- Create Migrations does nothing HOT 3
- Filtering typed json fields HOT 4
- V3: Explore Github Actions for running tests on multiple versions of Node
- CLI: warthog `db:create` should pull DB name from `WARTHOG_DB_URL`
- Add GeoPoint decorator
- use typeorm/cli.js instead of .bin/typeorm when running migrations and stuff HOT 1
- Allow path to custom ormconfig
- Is this project dead?
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 warthog.