String Functions in DQL

amaster507
Tue, 01 Sep 2020 00:10:32 +0000
Dgraph

Experience Report for Feature Request

What you wanted to do

Use String Functions within DQL to do upserts and transform data on server side without client script.

What you actually did

Started this Topic After I double checked and searched the docs again and searched this forum for “String Functions”

Why that wasn’t great, with examples

Because there are not any string functions. I understand the GraphQL experience with Dgraph, but when I want to do data work behind the generated API, it becomes difficult. This makes me miss my relational database. Wish to not be reminded of that time in my life, lol.

I would like to not need an external script everytime I just want to do onetime actions. This causes much frustration for me.

Examples of string functions in neo4j:

left()

ltrim()

replace()

reverse()

right()

rTrim()

split()

substring()

toLower()

toString()

toUpper()

trim()

+ for concatenation

Examples of String Functions in MySQL:

CONCAT()

CONCAT_WS()

INSERT()

LEFT()

LCASE()

LTRIM()

MID()

etc.

Example of String Functions supported by mongoDB:

CONCAT()

LCASE()

LEFT()

LTRIM()

UCASE()

etc.

Any external references to support your case

Neo4j Graph Data Platform

String functions - Cypher Manual

String functions all operate on string expressions only, and will return an error if used on any other values.

dev.mysql.com

MySQL :: MySQL 8.0 Reference Manual :: 14.8 String Functions and Operators

mongodb.com

Supported SQL Functions and Operators - BI Connector - MongoDB Docs

Explore the supported SQL functions, operators, and statements in the MongoDB Connector for BI, including comparison, logical, and string functions.

10 posts - 7 participants