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

Issue on docs - keys in code don't match Example space key (firstName vs. first_name) #928

Open
arashyazdidev opened this issue Nov 7, 2023 · 0 comments

Comments

@arashyazdidev
Copy link

Path: /quickstart/add-data-transformation

When following the documentation and Example space setup in the getting-started module, the keys don't match what is in the javascript and typescript code snippets:

The code is written as firstName but in the Example Flatfile space, it is first_name

What is in the code snippets from the article:

listener.use(
  recordHook("contacts", (record) => {
    const value = record.get("firstName");

    if (typeof value === "string") {
      record.set("firstName", value.toLowerCase());
    }

    return record;
  })
);

What it should be to match the keys auto-generated in demo space:


 listener.use(
 recordHook("contacts", (record) => {
   const value = record.get("first_name");

   if (typeof value === "string") {
     record.set("first_name", value.toLowerCase());
   }

   return record;
 })
);
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