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

generate client pointer param types #434

Merged

Conversation

PatrykWalach
Copy link
Collaborator

@PatrykWalach PatrykWalach commented Feb 24, 2025

Part of client pointers #53

@PatrykWalach PatrykWalach force-pushed the generate-client-pointer-param-types branch from 1ada565 to 3c31a60 Compare February 25, 2025 12:51
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 shipit

TClientTypeSelectionLinkedFieldAssociatedData,
TClientTypeVariableDefinitionAssociatedData: Ord + Debug,
TOutputFormat: OutputFormat,
>
Copy link
Collaborator

Choose a reason for hiding this comment

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

weird rust fmt behavior ! Anyway, all good (it's formatting it), just surprising

>,
>
{
pub fn description(&self) -> Option<DescriptionValue> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

let's at some point consolidate these into an interface, so that e.g. the second param here can be ClientField or ClientType and we still have a .description method

VariableDefinitionInnerType,
TOutputFormat,
> = FieldType<
&'a SchemaServerField<
Copy link
Collaborator

Choose a reason for hiding this comment

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

it makes me sad that SchemaServerField is both linked and scalar :/ We should eventually fix that #436

associated_data: &isograph_schema::ServerFieldTypeAssociatedData<
TypeAnnotation<isograph_lang_types::ServerObjectId>,
>,
name_or_alias: FieldNameOrAlias,
Copy link
Collaborator

Choose a reason for hiding this comment

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

nice, good catch!

@rbalicki2 rbalicki2 merged commit 329b99e into isographlabs:main Feb 25, 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