ash-project / ash-project/ash_graphql

feat: Add support for ash calculation `field?: false` option

Open
#361 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Elixir
Stars
97
Forks
101
Avg merge
12h 51m
Merged PRs (30d)
5

Description

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

### AI Policy

- [x] I agree to follow this project's AI Policy, or I agree that AI was not used while creating this issue.

### Is your feature request related to a problem? Please describe.

Dependency for releasing https://github.com/ash-project/ash/issues/2242

### Describe the solution you'd like

When a calculation has field?: false
- Exclude from response schema
- Include as filter option when filterable?: true
- Include as sort option when sortable?: true

### Describe alternatives you've considered

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by locating where Ash calculations are turned into GraphQL response fields, filters, and sorts. Verify behavior for field?: false with filterable?: true and sortable?: true: the calculation should be absent from the response schema while remaining available in the applicable filter and sort options.

Written by the indexing model from the issue text.

Assessment

Tech stack
elixir, graphql
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.