Skip to content

How would one instruct the generator to use a specific client from a list of named clients #9822

Closed Answered by isawk
isawk asked this question in Q&A
Discussion options

You must be logged in to vote

Found answer right after posting

https://the-guild.dev/graphql/codegen/plugins/typescript/typescript-apollo-angular#namedclient-directive

usage with additional parameters

mutation operation($data: create_directus_users_input!){
	graphql_operation (data: $data) @namedClient(name: "system") {
        first_name
        last_name
        email
    }
}

usage with additional parameters

mutation operation($data: create_directus_users_input!){
	graphql_operation @namedClient(name: "system") {
        first_name
        last_name
        email
    }
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by isawk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant