- Add to the schema and update the type that has been configured as the
hitTypeName. Normally this would be
ResultHit. Below is an example of adding an additional field in Hit in the schema
Then provide a resolver for the field. See ResultsResolver for what can be provided.
then with a GQL query like below
will call the exampleCustomField resolver for each hit item. The parent object (passed as an argument) contains the HitFields values. The return value is what will be provided in the response.