Comments (1)
I solved this without doing raw SQL by creating a new field in the class extending ObjectType
and having the resolve_
method retrieve the field I want from the relationship I created (it basically does return a.b.c
(where a, b, c are fields from the relationship) + checks none of them is None).
from graphene-sqlalchemy.
Related Issues (20)
- Remove unused metadata HOT 2
- Enum cannot represent value HOT 5
- Flask example gives ImportError HOT 6
- How to remove "edges" and "node" from query? HOT 9
- examples/flask_sqlalchemy: dependency specification needed, due to breaking change in graphql-core ^3 HOT 1
- Expand docs with batching example
- Global ids from objects with composite primary keys are not correctly extracted (again) HOT 2
- Hybrid properties don't work in the presence of future annotations HOT 6
- Prioritize custom type conversion over standard conversions HOT 1
- Relationship isn't working if a model has a property named other than 'id'. HOT 5
- Support for sqlalchemy ^2.0.0 HOT 7
- flask_sqlalchemy example does not run with v3 release HOT 2
- hybrid_property annotations with built-in types defaulting to `ForwardRef` and failing schema compilation HOT 2
- Default sort HOT 1
- ORMField batching results in null result HOT 1
- filter: Guys, did you forgot on DateTimeFilter? HOT 1
- Requiring graphene_type for custom filters as well as type hints HOT 1
- Allow a custom filter class with the purpose of using all the base filters, and adding sqlalchemy-filter esk filters
- A way to add custom filters not specific to fields
- Conversion of BigInteger primary keys to ID
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 graphene-sqlalchemy.