Learn how to use the hoist transform from GraphQL Mesh to lift a field from one object type to a 'parent' root or object type. Explore the HoistField transform and more.
The hoist field transform allows you to lift a field from one object type to a ‘parent’ root or
object type.
How to use?
Given the following schema:
type Query { users(limit: Int!, page: Int): UserSearchResult}type UserSearchResult { page: Int! results: [User!]!}type User { id: ID!}