Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.yml file is not getting read in mappings #950

Open
gurjotkaur20 opened this issue Feb 9, 2024 · 0 comments
Open

.yml file is not getting read in mappings #950

gurjotkaur20 opened this issue Feb 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@gurjotkaur20
Copy link
Contributor

Version Information

@godspeedsystems/core: "2.3.2"

Current Behavior

Not able to refer .yml file in mappings. It should be able to read mappings from .yaml/.yml files.
Filename: mappings/busi.yml
If I try to use it in the workflow:

  - id: business_one
    fn: datasource.mysql.business.findUnique
    args:
      where:
        id: <% inputs.params.id %>
      select: <% mappings.busi.get.select %>

It's giving error:

Caught error in evaluation in task id: business_one, error: {"success":false,"message":"Cannot read properties of undefined (reading 'get')","data":"TypeError: Cannot read properties of undefined (reading 'get')\n    at Object.eval [as select] . . . . .. 
@gurjotkaur20 gurjotkaur20 added the bug Something isn't working label Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant