You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently working on a project where I need to identify all fields in my Pothos schema that have specific options enabled, such as the tracing option.
Could you please provide guidance or an example of how to programmatically find all fields that have the tracing option enabled?
Thank you for your assistance!
The text was updated successfully, but these errors were encountered:
I need to get a list of all fields that have an option enabled so I can do some external processing.
To my knowledge I have access to (type/field).extensions.pothosOptions only when a specific operation is called. Any way (method) to get a list of (type/field).extensions.pothosOptions for all at once?
You can get all of the types in your schema by doing schema.getTypes(), and all of a types fields (if it's an object or interface) using type.getFields(). It should be pretty easy map over these to collect the options you need
Hello Pothos team,
I am currently working on a project where I need to identify all fields in my Pothos schema that have specific options enabled, such as the tracing option.
Could you please provide guidance or an example of how to programmatically find all fields that have the tracing option enabled?
Thank you for your assistance!
The text was updated successfully, but these errors were encountered: