Comments (2)
Hi @CorneLosVisma
The library support expression builder
people.query((q) => {
q.filter(({e, t}) => e().any(t.Friends, ({e, t}) => e().eq(t.Firstname, 'Keith')));
q.expand(({e, t}) => e().field(t.Friends));
}
.fetch()
.subscribe();
Where in filter
the optional parameters are:
e is the expression builder
t is the type
o are operations
f are functions
from angular-odata.
Ah wait, I think it is something like this:
people.query((q) => {
q.filter({ Friends: { any: { Firstname: 'Keith' }}});
q.expand('Friends');
}
.fetch()
.subscribe();
Not sure it is the correct way but it seems to work.
However I do not like this syntax very much.
Something like this would be nice :-)
people
.whereAny('Friends', friend => friend.equals('Firstname', 'Keith'))
.expand('Friends')
.fetch()
.subscribe();
from angular-odata.
Related Issues (20)
- Angular 14 Support? HOT 1
- publish angular 14 update :-)
- Would like library replace single quote in Odata query by default HOT 1
- how to /(S(juqvmnem2qpijynyewk4pld5))/People('russellwhyte')?$expand=Trips($top=2;$skip=1) HOT 2
- "this.options.helper.context is not a function" HOT 1
- how to access all properties in raw json reply HOT 4
- skiptoken of annotations returns wrong result when it include - (hyphen) HOT 1
- No easy way to provide config asynchronously HOT 2
- Custom entity update endpoint address HOT 1
- Broken .exec method since update to 0.121? HOT 2
- Inline annotations support for parsing metadata xml documents? HOT 1
- Semicolons should be encoded as %3B ? HOT 2
- replacement of OdataEntityService.customCollectionAction in the latest version HOT 1
- could you please explain why the preferred http method is PUT but not PATCH HOT 1
- Introduce `provideODataClient()` for standalone Angular apps HOT 7
- `query.orderBy()` usage HOT 1
- Resource transformation HOT 2
- NullInjectorError: No provider for ODataServiceFactory HOT 1
- Broken typing of `select` inside of `expand`
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 angular-odata.