From 3785503a60dfb1d37787a6ccdf73327325a4d032 Mon Sep 17 00:00:00 2001 From: Nick Vernij Date: Wed, 19 May 2021 11:37:36 +0200 Subject: [PATCH] Document behavior on Absinthe.Type.Object --- lib/absinthe/type/object.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/absinthe/type/object.ex b/lib/absinthe/type/object.ex index 0a22452a56..45787c2570 100644 --- a/lib/absinthe/type/object.ex +++ b/lib/absinthe/type/object.ex @@ -79,7 +79,7 @@ defmodule Absinthe.Type.Object do * `:description` - A nice description for introspection. * `:fields` - A map of `Absinthe.Type.Field` structs. Usually built via `Absinthe.Schema.Notation.field/4`. * `:interfaces` - A list of interfaces that this type guarantees to implement. See `Absinthe.Type.Interface`. - * `:is_type_of` - A function used to identify whether a resolved object belongs to this defined type. For use with `:interfaces` entry and `Absinthe.Type.Interface`. + * `:is_type_of` - A function used to identify whether a resolved object belongs to this defined type. For use with `:interfaces` entry and `Absinthe.Type.Interface`. This function will be passed one argument; the object whose type needs to be identified, and should return `true` when the object matches this type. The `__private__` and `:__reference__` keys are for internal use. """