Skip to content

Expose dependsOn and resolvedInputName in resolver scope #8

@lorisleiva

Description

@lorisleiva

When generating the resolverScope object which is then passed to every resolver function call, we could provide more available data to enable more powerful and reusable resolver logic.

For instance we could add:

  • The dependsOn array which tells the resolver the arguments and accounts it depends on.
  • The resolvedInputName string which tells the resolver the name of the account or argument currently being resolved.

That way, the same resolver function can be used for multiple values as the dependsOn array and the resolvedInputName string can be used to distinguish between them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions