Skip to content

add client pointers runtime #515

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

Merged
merged 1 commit into from
May 24, 2025

Conversation

PatrykWalach
Copy link
Member

I will add support for lists as a follow up
Part of #53

@PatrykWalach PatrykWalach force-pushed the client-pointers-runtime branch from 83e3ab7 to 11441a8 Compare May 8, 2025 08:55
@PatrykWalach PatrykWalach force-pushed the client-pointers-runtime branch from 11441a8 to a2c5f37 Compare May 15, 2025 18:09
@PatrykWalach PatrykWalach force-pushed the client-pointers-runtime branch from a2c5f37 to edcea94 Compare May 16, 2025 22:29
Copy link
Collaborator

@rbalicki2 rbalicki2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Just a few nits, but I can fix them on main

@@ -797,6 +798,104 @@ export function readLinkedFieldData(
};
}
const targetId = link;
if (typeof field.refetchQuery === 'number') {
root = link;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: this is a bit confusing. Maybe it will be a bit clearer to define a new variable, clientPointerTargetId or somthing?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well, we have that with targetId already!

@@ -797,6 +798,104 @@ export function readLinkedFieldData(
};
}
const targetId = link;
if (typeof field.refetchQuery === 'number') {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: refetchQuery != null I think is more idiomatic

can you add a comment saying // if refetchQuery is not null, then the field is a client pointer. Can you also add that to ReaderLinkedField?

@rbalicki2 rbalicki2 merged commit c73610c into isographlabs:main May 24, 2025
23 checks passed
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

Successfully merging this pull request may close these issues.

2 participants