Azure / Azure/data-api-builder
GraphQL Uuid Filter Options
- Vorherrschende Sprache
- C#
- Sterne
- 1.5k
- Forks
- 370
- Ø Merge
- 3 T. 22 Std.
- Gemergte PRs (30 T.)
- 9
Beschreibung
Different types in graphql support different filter options:
e.g.
```gql
query {
books(_filter: {id: {lt: 5 gt: 2}} title: {contains: "Book" notContains: "Great"})
{
...
}
}
```
Currently, the uuid type is handled as String which supports:
`eq, contains, notContains, startsWith, endsWith, neq, caseInsensitive, isNull`
Most of these options are not meaningful for the uuid type. We can create custom scalar types quite easily and add a restricted set of filter options. Afaict, `eq, gt, lt` make sense for uuid.
@yorek @Aniruddh25 thoughts?
Beitragsleitfaden
Rechercherichtung
Es werden keine Dateien oder Tests genannt. Beginne damit, den GraphQL UUID scalar und den Code zu finden, der String filter options zuweist, und vergleiche anschließend vorhandene Implementierungen benutzerdefinierter scalar oder Filter. Fertig ist die Aufgabe, wenn UUID nur eine abgestimmte sinnvolle Filtermenge bereitstellt und die Abdeckung zeigt, dass die nicht unterstützten string options nicht mehr verfügbar sind.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- graphql
- Bereich
- api
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100