Comments (2)
RE #96 (comment), just thinking out loud on how this might work:
How about walking the tree in the where clause and storing up the defined predicates for entities that are not in the initial select. Then as the rest of the query/sub queries are built from the projection selection, check to see if there is a predicate stored for the current entity and apply it.
If, after all the nested queries are built, there are unapplied predicates remaining, generate clauses/sub queries to satisfy them.
?
from graphql-jpa-query.
@molexx I have created a PR to add support for nested relationships in where criteria expressions. See: https://github.com/introproventures/graphql-jpa-query/pull/108/files#diff-52f280238db11c302ce9ac4f3fc76b15R777.
It only supports to one
relationships for now. It also provides a workaround for nested embedded criteria expressions: #77
from graphql-jpa-query.
Related Issues (20)
- Custom query
- Is it possible to connect multiple-datasource?
- Non-threadsafe Entitymanager instance
- GraphQL schema is transformed on every request, leading to performance issues
- @Embedded doesn't seem to work HOT 1
- Pagination error after index out of bound
- OrderBy throws NullPointerException using EclipseLink JPA
- LazyInitializationException during load test
- Payload response has null values during load test HOT 2
- getResultStream should use query.getResultStream instead of query.getResultList().stream
- Mutation Wanted!
- Mutation Wanted HOT 3
- How can I override an Entity field dataFetcher?
- Entities named differently to the underlying database table are misnamed in the schema
- NPE on nested @Embedded HOT 4
- Getting Started Guide? HOT 2
- Bump hibernate-core from 5.6.14.Final (Nov 2022) to 6.2.1.Final (Apr 2023) HOT 1
- ManyToOne relationships failing with UnknownTableReferenceException HOT 2
- Single Result Queries losing the original Object Type with EmbeddedIds HOT 1
- Used with hibernate-envers
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 graphql-jpa-query.