Skip to main content

TakeShape Resolver

There are also TakeShape-specific resolvers that allow you to execute common CRUD actions on model-annotated shapes.


name

Type

string!

Values

  • takeshape:get
  • takeshape:list
  • takeshape:create
  • takeshape:update
  • takeshape:delete
  • takeshape:duplicate
  • takeshape:find
  • takeshape:queryApiIndex

shapeName

Type

string!

Description

The name of the Shape this resolver should act upon. The Shape indicated must contain a shape.model property.


options

The options object contains configuration specific to the type of resolver you select.


indexedShape

Type

string!

Description

Used only in the takeshape:queryApiIndex resolver.


args

Type

ParameterConfig?

Description

Allows mapping from the QueryContext to the args values (input arguments) for the resolver. Results are not serialized. For more information read about the ParameterConfig.


results

Type

ParameterConfig?

Description

Allows mapping from the QueryContext to the results for the resolver step in a ComposeResolver or whole query. Results are not serialized. For more information read about the ParameterConfig.