sindresorhus / multiline

Multiline strings in JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add another use case

freethejazz opened this issue · comments

I've been using this for query strings, like so(parameterized, in this case):

exports.upsertOne = multiline(function(){/*
  MERGE (n:Person {screen_name: {screenName}})
  ON CREATE SET n={userMap}
  RETURN n
*/});

This is for an app I'm working on with Neo4j, so the query language is Cypher, but I imagine it'll have just as much value for other query languages, too.

Nice! Would you mind opening a PR with a link to that added in the usecase section?

For sure, I'll do it tonight after work.