apoc.data.email

Function APOC Full

apoc.data.email('email_address') as {personal,user,domain} - extract the personal name, user and domain as a map

Signature

apoc.data.email(email_address :: STRING?) :: (MAP?)

Input parameters

Name Type Default

email_address

STRING?

null

Install Dependencies

This procedure has a dependency on an email library that is not included in the APOC Library.

The dependency is included in apoc-email-dependencies-4.4.0.26.jar, which can be downloaded from the releases page. Once that file is downloaded, it should be placed in the plugins directory and the Neo4j Server restarted.

Usage Examples

RETURN apoc.data.email("michael@neo4j.com") AS output;
Table 1. Results
output

{personal: NULL, user: "michael", domain: "neo4j.com"