Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

250
Views
¿Por qué usar la función de conteo en neo4j con graphql devuelve dos valores llamados bajo y alto?

Si ejecuto el siguiente cifrado en el navegador Neo4j, devuelve los valores esperados

 MATCH (n:Document) RETURN { year: n.year , countdocs : COUNT(n) }

Resultado:

 {"countdocs":3,"year":"2018"}

Pero si ejecuto el mismo cifrado en neo4j-graphql

 type Query { totalActivityOverTime: [JSONObject] @cypher(statement: """ MATCH (n:Document) RETURN { year: n.year , countdocs : COUNT(n) } """) }

devoluciones :

 { "countdocs": { "low": 3, "high": 0 }, "year": "2018" },

¿Qué significan los valores bajo y alto?

¡Gracias!

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Creo que depende del tipo de countdocs . Hasta donde yo sé, si define 'countdocs' como BigInt en neo4j-graphql, devuelve un dict con {"low": Int, "high": Int} para representar enteros de 64 bits. Definir countdocs como Int en el esquema debería resolver el problema. El tipo Int admite valores de hasta 53 bits

about 4 years ago · Juan Pablo Isaza Report

0

Gracias a @Sbunzini y @stdob, encontré la solución:

Esquema:

 type Activity{ year: String countdocs: Int } type Query { totalActivityOverTime: [Activity] @cypher(statement: """ MATCH (n:Document) RETURN { year: n.year , countdocs : COUNT(n) } """) }

GráficoQL:

 { totalActivityOverTime{ year countdocs } }

¡Gracias!

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!