Do the queries return the same type? (as specified by the gql schema)
If so, you can use fragments. A defined fragment (using gql ppx) can be used several times and the ppx will only generate a single type for this fragment. Therefore, if all your query results just return the same fragment, they will all have the same type as their result.
Walnut is supposedly working on migrating graphql-ppx to v11: Anyone using graphql-ppx and rescript-apollo-client with 11? - #4 by jfrolich