0xPlaygrounds / 0xPlaygrounds/subgrounds

How can one filter a column by condition NOT NULL

Aperta
#50 6 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug
Lingua principale
Python
Stelle
73
Fork
12
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**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.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
graphql, python
Ambito
api, documentation
Tipo di issue
Documentazione
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Ferma
Chiarezza
Specificata chiaramente
Idoneità per principianti
40/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.