Add configuration to generate a client for a subset of the graph #1281
Labels
client
GraphQL Client module
enhancement
New feature or request
tools
Issue related to Caliban tools like code generation or schema comparison
Currently client generation occurs for the entire graph, that is, when you generate from a schema you will end up with generated files for the entire schema regardless of if it is useful to you. I encountered this in #1280 when generating the client, the full schema contains about 500 types, since we only needed the types related to the
reportSchema
mutation this was overkill (and it prevents us from automatically generating the schema through the plugin).We should allow the user to specify the names of top-level fields,
Mutation.reportSchema
for instance, and then perform a graph walk of the types that are used by that call to only resolve the types that are needed to satisfy those queries.The text was updated successfully, but these errors were encountered: