GQLInterface

GQLInterface

Source:

Methods

(static) ⌾⠀resolveType(model) → {string}

This needs to be able to, depending on your implementors, identify
which on the data actually is given the model to work with.

Source:
Parameters:
Name Type Description
model mixed

the data you can use to instantiate the type of
object in question.

Returns:
Type:
string

a string matching the name of a defined GraphQL type
found elsewhere in your schema

GQLInterface

Methods

(static) ⌾⠀resolveType(model) → {string}

This needs to be able to, depending on your implementors, identify
which on the data actually is given the model to work with.

Source:
Parameters:
Name Type Description
model mixed

the data you can use to instantiate the type of
object in question.

Returns:
Type:
string

a string matching the name of a defined GraphQL type
found elsewhere in your schema