FeatureFuel
3

Add Fields Exclusion in Rest API

Source: directus/directus#25332 · opened by @mannu691
Summary hey, i'd like to suggest adding ! operator to exclude fields in the rest api when using wildcard ( * ) Basic Example Before : /items/person?fields=name,age,height,friends.name,friends.age,friends.height After : /items/person?fields=*,friends.*,friends.!friends Motivation while the above example is trivial , when using querying through deeper relations and not wanting all the fields/connected relations, it becomes tedious to write all the fields name and it also blots the requests size Detailed Design have a negate operator like ! which when placed before a field name in fields parameter in the rest api explicitly excludes the field and when used in conjunction with the wildcard (*) operator , it will provide all the fields of the collection except the excluded fields Requirements List Must Have: • Ability to exclude fields when using rest api Should Have: • Ability to exclude fields when using rest api Could Have: ̶…

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests