postgraphile-plugin-connection-filter icon indicating copy to clipboard operation
postgraphile-plugin-connection-filter copied to clipboard

Feature request: filter by Relay nodeId

Open RedShift1 opened this issue 5 years ago • 2 comments

Right now filtering on primary and foreign keys work with the actual values from the database. This leaks an implementation detail and might be cumbersome to deal with if the datatype of this identifier changes in the future (for example from integer to uuid). If primary and foreign keys could be filtered by nodeId, this problem would be solved. Furthermore it would provide consistency with other methods that accept nodeId's.

RedShift1 avatar Dec 01 '20 19:12 RedShift1

Could you expand on how you would want to filter on nodeId? Anything beyond equalTo/notEqualTo/in/notIn? I'm thinking anything outside of those wouldn't make sense for what's supposed to be an opaque identifier.

mattbretl avatar Aug 02 '21 04:08 mattbretl

That makes perfect sense to me, equal and in operations (and their not versions) should suffice.

RedShift1 avatar Aug 02 '21 19:08 RedShift1