Fork me on GitHub
#graphql
<
2022-08-23
>
Daniel Stephens08:08:32

Hey folks, anyone know about support for INPUT_FIELD_DEFINITION | ARGUMENT_DEFINITION directives in Lacinia. The docs mention it's changing fast so just wondering if there's something in the pipeline currently and if it has an ETA. Or alternatively if there's something I could work on, I can try my hand at some changes but it would be useful if there's a plan in mind for the implementation as it's probably reasonably far reaching.

Daniel Stephens08:08:51

I've come across the apply-field-directives stuff so could follow that pattern perhaps (haven't looked far into the source yet)

Daniel Stephens11:08:21

FWIW I started looking into the code, it seems like Directives are extracted and compiled in the source but only field-directives are really support for swapping in logic from one place. I've started messing around with some code that follows a similar pattern in order to interpret other directives but it might end up being only useful to me if the planned route is significantly different.

Daniel Stephens17:08:06

WIP getting somewhere https://github.com/GreshamDanielStephens/lacinia/pull/1/files?diff=split&amp;w=1 Note Haven't managed to work out the formatting yet so above link hides whitespace, clearly I have some different settings and couldn't see a deps job to run a formatter if anyone knows how. I don't want to change my settings since I have them for work.