Code Monkey home page Code Monkey logo

Comments (3)

erhant avatar erhant commented on June 11, 2024 1

moving the discussion here (from warp-contracts/warp#494 (comment))

during this change v1.1.62...v1.1.63 the removal of || undefined causes null values to stay null instead of undefined, which the server probably does not handle.

from arlocal.

ppedziwiatr avatar ppedziwiatr commented on June 11, 2024

Hey, I've found the root cause (testing on latest ArLocal version - 1.1.64)

The issue - latest versions of the ArLocal do not behave properly if null is passed as max in the block filter.
I.e. this filter works:

block: { min: 0, max: 100 }

This filter does NOT work:

block: { min: 0, max: null }

This works:

image

Query:

query {
  transactions(
    ids: ["thLz97087UrlLfXJ0RphXZ7g_mK569ro63ulCxxRtdY"],
    block: { min: 0, max: 100 }
  ) {
    pageInfo {
      hasNextPage
    }
    edges {
      node {
        id
        bundledIn {
          id
        }
        tags {
          name
          value
        }
      }
    }
  }
}

This does NOT work:
image

Query:

query {
  transactions(
    ids: ["thLz97087UrlLfXJ0RphXZ7g_mK569ro63ulCxxRtdY"],
    block: { min: 0, max: null }
  ) {
    pageInfo {
      hasNextPage
    }
    edges {
      node {
        id
        bundledIn {
          id
        }
        tags {
          name
          value
        }
      }
    }
  }
}

This apparently has changed in the latest ArLocal versions AND is inconsistent with how the arweave.net/graphql works:
image

from arlocal.

cedriking avatar cedriking commented on June 11, 2024

Merged and updated in version v1.1.65.

from arlocal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.