Skip to content

Add [TraxQueryModel] attribute#33

Merged
Theauxm merged 2 commits intomainfrom
feat/query-model-attribute
Mar 16, 2026
Merged

Add [TraxQueryModel] attribute#33
Theauxm merged 2 commits intomainfrom
feat/query-model-attribute

Conversation

@Theauxm
Copy link
Copy Markdown
Member

@Theauxm Theauxm commented Mar 16, 2026

Summary

  • New [TraxQueryModel] attribute for marking EF Core entities as declarative GraphQL queries
  • Configurable per-model toggles: Paging, Filtering, Sorting, Projection (all default true)
  • Optional Name, Description, and DeprecationReason properties

Part of the query model feature spanning Trax.Effect, Trax.Api, Trax.Samples, and Trax.Docs.

Test plan

  • Attribute property defaults verified in Trax.Api.Tests
  • Feature toggle combinations tested

…ueries

New attribute that marks EF Core entities for automatic GraphQL query exposure
with configurable pagination, filtering, sorting, and projection toggles.
Adds Namespace to TraxQueryAttribute, TraxMutationAttribute, and
TraxQueryModelAttribute. When set, the field appears under a
sub-namespace in the schema (e.g. discover { players { ... } })
instead of flat under discover/dispatch.
@Theauxm Theauxm merged commit 7c856dd into main Mar 16, 2026
1 check passed
@Theauxm Theauxm deleted the feat/query-model-attribute branch March 16, 2026 21:03
@traxsharp
Copy link
Copy Markdown

traxsharp Bot commented Mar 16, 2026

This PR is included in version 1.20.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant