Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client Resolvers with Server edges are not making client edge requests #4882

Open
jonreading81 opened this issue Jan 16, 2025 · 0 comments
Open

Comments

@jonreading81
Copy link

jonreading81 commented Jan 16, 2025

Im experiencing some inconsistent behaviour when using client resolvers with Server Edges.
Components which are provided fragments can be observed to not have data they are requesting.

The issue appears to be when using Server Edges in combination with fragments. The client edge query is only actioned when the data is requested in the field with the @waterfall directive is not available in the store. If that field uses a fragment, data within the fragment is not requested if it is not in the store.

For example a query referencing a fragment with:

query PlayerQuery {
   items {
      cloudcast @waterfall {
        id,
        ...PlayerItem
      }
  } 
}
fragment PlayerItem_cloudcast on cloudcast {
  name
  owner{
     displayName
   }
}

In this example the owner.displayName does not trigger an client edge query. However if it was written as below it would:

query PlayerQuery {
   items {
      cloudcast @waterfall {
        id,
        owner{
          displayName
        }
        ...PlayerItem
      }
  } 
}

It appears that the fragment data is not inspected when making client edge requests

@jonreading81 jonreading81 changed the title Client Resolvers inconsistent behaviour when using fragments Client Resolvers with Server edges are not making client edge requests Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant