Skip to content

Recommended method for handling Apollo @client fields? #280

Answered by JoviDeCroock
carsondarling asked this question in Q&A
Discussion options

You must be logged in to vote

Currently we have no support for this and you're also the first to ask. I guess this is a bit of a hard one but a possibility here is to run our generate-schema helper and maintaining a second schema that you merge with the generated schema. This way you can reflect the client-side extensions of your server side schema. When you have your schema reflecting the extensions you can generate your tada-output and you are off to the races.

In your case the local schema would only contain type Component { path:String } which would be merged with your server one to form the extended type.

We can't really predict the type nor can we know where these fit so this for the time being feels like the mo…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@kitten
Comment options

@carsondarling
Comment options

@carsondarling
Comment options

Answer selected by carsondarling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants