Skip to content

Postgresql and UUID issues #596

Discussion options

You must be logged in to vote

I did remember reading in the documentation something about exact filters, and boom. Done! This plugin is amazing!

Updated code with the solution:

DataEntryListResource::collection(
    QueryBuilder::for(DataEntry::class)
        ->withCount('rows')
        ->with('dataset')
        ->allowedFilters([
            AllowedFilter::exact('user_id'),
            AllowedFilter::exact('dataset_id'),
            'type',
            'status',
            AllowedFilter::partial('author', 'author.name'),
            AllowedFilter::partial('dataset', 'dataset.name'),
        ])
        ->defaultSort('-updated_at')
        ->allowedSorts([
            'type',
            'status',
            'created…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by allan-christian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant