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.
Comments
Similar requests
Accordions and Detail group nested fields
2 votes · 0 comments
Allow editing on the system fields
50 votes · 0 comments
An option to add fields into relevant groups without dragging them.
8 votes · 0 comments
Rest and SDK exclude specific fields
13 votes · 0 comments
Fine-Grained Field-Level Permissions (Read/Update Subset Without Full Read Access)
1 vote · 0 comments
No comments yet.