Inferring Types
In some cases you may want to use the types from your input of object refs to build helpers, or provide accurate types for other functions.
To get types from any Pothos ref
object, you can use the $inferType
and $inferInput
properties
on the ref. This pattern is inspired by drizzle ORM.