Skip to main content

Observe

Observe allows Inigo's users to perform inspection of queries and annotate certain parts of it depending on the configuration you set. For example, you may use Observe to mark/flag fields used in a query depending on the types of directives are applied to them in your GraphQL schema.


Sample Config

kind: Observe
name: user-service
spec:
field_tags:
- type: User
field: email
tag: sensitive

Spec

This section defines the format of Inigo's Observe type configuration files. Fields marked as required must be specified if the parent is defined.

FieldTypeDescription
field_tags[FieldTag]
directive_tags[string]List of GraphQL Directives Inigo searches for to flag use of deprecated fields.
profile_default_valuesObserveProfileDefaultValues
profiles[ObserveProfile]

FieldTag

FieldTypeDescription
typestring requiredThe GraphQL Type.
fieldstring requiredThe GraphQL Field.
tagstring requiredA tag value.

ObserveProfileDefaultValues

FieldTypeDescription
deprecated_extensionbooleanShow selected deprecated fields within the response's extensions key.

ObserveProfile

FieldTypeDescription
Namestring requiredName of the profile.
deprecated_extensionbooleanShow selected deprecated fields within the response's extensions key.