input StepZen_VisibilityPattern

Defines visibility for fields within a GraphQL schema.

An instance applies to fields and types that each match their regular expression patterns for fields and types.

Examples:

Exposes all fields in root operation type Query that start with a lower case letter.

{expose:true types:"Query" fields:"[a-z].*"}

Hides all fields in root operation types Query and Mutation that start with an underscore. A common practice is to prefix internal field names with an underscore.

{expose:false types:"Query|Mutation" fields:"_.*"}

Fields

expose: Boolean

This argument determines whether fields matched by types and fields are exposed or hidden.

If not set then the default is false for root operation types and true for all other types.

fields: String!

This argument is a regular expression pattern to match GraphQL field names.

types: String!

This argument is a regular expression pattern to match GraphQL type names.