-
-
Notifications
You must be signed in to change notification settings - Fork 101
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
Relay-like @plural directive #261
Comments
Hey, as I've run into the same use case (and seem to be unable to figure out a solution where I basically have a
I've done the yarn is version 3.2.0, node is 18.7.0, just in case that's relevant. |
👋 hey there! so i'll be honest, I haven't run the example application in awhile since I've been using the integration tests as my sandbox. Are you able to run that project? It's a sveltekit project so You could also just let it install the old version, delete it, and replace it with a symlink to your local directory |
The symlink approach fails on Now I'm thinking about the correct way to design the interface. I'd assumed something like this: export function fragment<_Fragment extends Fragment<any>>(
fragment: GraphQLTagResult,
ref: _Fragment[] | null
): Result<_Fragment>[] A single fragment (with the |
Discussed in https://github.com/HoudiniGraphql/houdini/discussions/239
Originally posted by mhzokaii March 22, 2022
Hi!
First of all, your work is really great, congrats.
The
@relay (plural: true)
directive defined in Relay, is very helpful in reducing the amount of work required for passing the data down to the sub-components. I couldn't find a similar way in Houdini. Am I missing something? Is it planned to be implemented? Or even maybe you see it as an anti-pattern? Should the@list
directive be used (and if yes, how can it be used infragment
definitions)?The text was updated successfully, but these errors were encountered: