invoke

operator fun invoke(ctx: ExecutionContext): Domain<String>(source)

Create a Domain that translates json-encoded strings of unknown types into IR.Value.Object representations.

The returned Domain will expect all input values to include a "__typename" key, with the name of a GraphQL input or output object type. Any input that does not include a "__typename" will cause a runtime exception to be thrown.

For use-cases where a decoded type is always known, see forType. For use-cases where values may be aliased, see forSelectionSet.

See also

forselectionSet