Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

101
Visualizações
PostgREST return not null values of JSON object

I have a postgrSQL table with three columns, one of which is a json field:

  id [num]  ||  school [char]   ||  info [json]
============================================================================
   1        ||   1st            || [{"fistname": "Bill", "Lastname": "Maison"}]
   2        ||   2nd            || [{"fistname": "John", "Lastname": "Handson"}]
   3        ||   3rd            || []
 

I want to filter the empty info fields with postgREST.

My url right now : https://127.0.0.1/table?&info->0->firstname=is.null

This actually returns all the values that are null, but how do I do it the other way? Exclude all the null values?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Found it. For anyone that will look this up in the future : https://127.0.0.1/table?&info->0->firstname=not.is.null

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda