apache / apache/grails-core

Cannot globally override DataFetcher's on custom operations/fields/properties

Open
#14,484 0 comments 0 reactions 0 assignees View on GitHub
relates-to: gorm
Dominant language
Groovy
Stars
2.9k
Forks
975
Avg merge
1d 22h
Merged PRs (30d)
92

Description

Overriding DataFetcher's currently is only supported on the automatically provided operations, and is not possible on custom operations or fields/properties.

This is cumbersome when dealing with a large object graph where a given entity type might be an associated property in numerous places, and where you want to restrict the data returned for that type, but not have to supply a custom DataFetcher everywhere the type is used.

Contributor guide

Open the contributing guide

Research direction

Start by locating the DataFetcher override handling and the code paths for custom operations, fields, and properties. Determine how a global override should apply across an entity type, then verify that the override works consistently wherever that type is used in the object graph.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.