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

Can't use parameter as function arguments. #25

Open
shinriyo opened this issue Aug 27, 2019 · 0 comments
Open

Can't use parameter as function arguments. #25

shinriyo opened this issue Aug 27, 2019 · 0 comments

Comments

@shinriyo
Copy link

It is my query hoge

      query: {
        hoge: '{:hoge}'
      }

I use func() method and argument is a in body.
It returns just '{:hoge}'.

const func = (a) => {
    console.log(a); // => it is just '{:hoge}'
};

module.exports = [
  {
      // something
      // something
      body: func('{:hoge}')
  }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant