Specify a Filter Name That Differs from the Column Name
- Lingua principale
- Go
- Stelle
- 367
- Fork
- 43
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
I'd like to have a property that is filterable but have the name of the filterable property be different than the name of the column that backs the property. For example
```
type User struct {
FirstName string `json:"firstName" rql:"filter,name=firstName,column=first_name"`
}
```
So a filter like this
```
{
"filter": {
"firstName": "Bob"
}
}
```
produces
`WHERE first_name="Bob"`
I don't see support for this currently. Is that correct? If so, would doing this be that difficult? I don't know the codebase very well, but this could be really useful for my team using this library.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.