Giter VIP home page Giter VIP logo

Comments (3)

jerelmiller avatar jerelmiller commented on September 25, 2024

Hey @hartantothio 👋

I'm a bit unclear what you're looking for here. Are you seeing issues with DeepMerger currently that need fixing? Are you using DeepMerger directly in some code that isn't performing correctly? I'd love to get some more context on the outcome you're looking for.

from apollo-client.

hartantothio avatar hartantothio commented on September 25, 2024

Hi @jerelmiller -- sorry about that. Hopefully the following is helpful.

I have a GQL query using the defer directive (doesn't seem to happen if I remove the defer). But, the problematic field isn't part of the the fragment being deferred. It's just the issue seems to be only when I turned on the defer directive on the query.

Example query:

fragment ObjectFragment on Object {
  id
  randomKey {
    someData
  }
}

fragment ObjectSlowFields on Object {
  id
  slowField
}

query TestQuery {
  object {
    ...ObjectFragment
    ...ObjectSlowFields @defer
  }
}

Initially, the returned results might looked like this:

{
    "data": {
        "object": {
            "randomKey": {
                "someData": [1, 2, 3]
            }
        }
    }
}

However, on subsequent fetch, if the server returned an [] for someData, I'd expect the final "merged" data for someData to be [].

from apollo-client.

alessbell avatar alessbell commented on September 25, 2024

This sounds like it's related to the failing test in #11374 which I had started investigating. Will take a closer look today.

from apollo-client.

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.