-
Notifications
You must be signed in to change notification settings - Fork 20
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
generate client pointer param types #434
Conversation
1ada565
to
3c31a60
Compare
There was a problem hiding this 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, | ||
> |
There was a problem hiding this comment.
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> { |
There was a problem hiding this comment.
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< |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice, good catch!
Part of client pointers #53