0xPlaygrounds / 0xPlaygrounds/subgrounds

How can one filter a column by condition NOT NULL

Offen
#50 6 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug
Vorherrschende Sprache
Python
Sterne
73
Forks
12
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

**Describe the bug**
It's not clear from the documentation how one can filter the subgraph results by a column which should not be NULL.

**To Reproduce**
My (incorrect) query:

```
latest_markets = subgraph.Query.fixedProductMarketMakers(
orderBy=subgraph.FixedProductMarketMaker.creationTimestamp,
orderDirection="desc",
first=2,
where=[str(subgraph.FixedProductMarketMaker.resolutionTimestamp) != "null"], # problem here
)
```

**Expected behavior**
I would expect an example to be found in the documentation.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Look at the subgrounds documentation and code for filtering examples, particularly in the query builder. Check how GraphQL filters are constructed in the library. The goal is to add a clear example of a NOT NULL filter to the docs, showing the correct syntax.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
graphql, python
Bereich
api, documentation
Issue-Typ
Dokumentation
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Veraltet
Klarheit
Klar beschrieben
Anfängerfreundlichkeit
40/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.