You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Async-first**: Main controller method `JsonApiOkAsync()` is async and works with `IQueryable<T>`
87
+
-**Async-first**: Main controller method `JsonApiQueryAsync()` is async and works with `IQueryable<T>`
87
88
-**Entity Framework integration**: Uses EF Core's `Include()` and query building capabilities
88
89
-**Filter expressions**: Complex filtering with operators (eq, ne, gt, lt, contains, etc.), logical grouping, and enum support
89
90
-**JSON column detection**: Collections and complex objects without ID properties are automatically mapped as JSON attributes instead of relationships (useful for EF Core owned entities stored as JSON columns)
@@ -137,7 +138,7 @@ Tests are organized by component:
137
138
### Common Patterns
138
139
139
140
- Controllers should inherit from `JsonApiController`
140
-
- Use `JsonApiOkAsync(queryable, "resourceType")` for collections with full query processing
141
+
- Use `JsonApiQueryAsync(queryable, "resourceType")` for collections with full query processing
141
142
- Use `JsonApiOk(entity, "resourceType")` for already-loaded entities or collections
142
143
- Entity types should have an `Id` property (auto-detected by `EntityMapper.GetIdProperty()`)
143
144
- Use `QueryParameters queryParams = GetJsonApiQueryParameters()` to access parsed query parameters
0 commit comments