I'm trying out a deep query filter and it's not working as I expect.
Here are my resources:
class RideResource < ApplicationResource
attribute :requested_start_time, :datetime
attribute :ride_completion_status, :string
attribute :ride_type, :string
belongs_to :account
belongs_to :transport_type
belongs_to :rider
end
class TransportTypeResource < ApplicationResource
attribute :name, :string
attribute :short_name, :string
attribute :full_name, :string
has_many :rides
end
Assuming there is no transport type resource with name "test123," I would expect the following request to return no results, but it's returning all the ride resources:
/api/v1/rides?include=transport_type&filter[transport_type.name]=test123
Is this a bug or do I need to configure my resources to behave the way I expect? I looked at the documentation and didn't see anything helpful.
I'm trying out a deep query filter and it's not working as I expect.
Here are my resources:
Assuming there is no transport type resource with name "test123," I would expect the following request to return no results, but it's returning all the ride resources:
/api/v1/rides?include=transport_type&filter[transport_type.name]=test123
Is this a bug or do I need to configure my resources to behave the way I expect? I looked at the documentation and didn't see anything helpful.