Issue creating nodes
See original GitHub issueI’m trying to create a node but from a request but I get an error in regards to .toLowerCase of undefined
here is my function code:
`exports.createUser = async(req, res) => { const { email, password, first_name, last_name } = req.body;
try {
await neode.create('User', {
email: email,
password: password,
first_name: first_name,
last_name: last_name
}).then(results => {
res.status(201).json({
message: "User created successfully"
})
})
}
catch (err) {
console.log(err)
}
};`
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Creating Nodes - Node-RED
Creating Nodes. The main way Node-RED can be extended is to add new nodes into its palette. Nodes can be published as npm...
Read more >Fix "Problem updating node" errors in Zaps - Zapier Help
The "Problem updating node" error usually occurs if you have security software like an anti-virus program or a pop-up blocker in your ...
Read more >Creating nodes locally - R3 Documentation
There are two ways you can create a node locally: Manually: create a local directory, add the relevant node and CorDapp files, and...
Read more >Troubleshooting - n8n Documentation
Error message: 'There was a problem loading init data: API-Server can not be reached. It is probably down'#. Check that the names of...
Read more >Top 10 Most Common Node.js Developer Mistakes - Toptal
The Top 10 Most Common Mistakes That Node.js Developers Make · Mistake #1: Blocking the event loop · Mistake #2: Invoking a Callback...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ahhh…the type is a string and not a type like
String
:I’ve added the unique bit in there for you too.
I need to do a better job of validating these schemas when neode loads them
yeah here it is @adam-cowley
module.exports = { labels: ['User'], id: { type: 'uuid', primary: true }, first_name: String, last_name: String, email: String, password: String };
I can give you access to the repo if you would like to investigate further.
also, the email property will become unique as well